commit | d74df41bea7d7bccc3dd5c55839ea92df5fc6060 | [log] [tgz] |
---|---|---|
author | Avi Drissman <[email protected]> | Tue Jul 23 17:35:28 2024 |
committer | Chromium LUCI CQ <[email protected]> | Tue Jul 23 17:35:28 2024 |
tree | ff401e845bb30912891406ab536c1ec0f73309a2 | |
parent | 9f331832c512a003ba7778e7f5eb856f5849b499 [diff] [blame] |
Turn EventType into an enum class Fixed: 285921876 Change-Id: Icfe41eed56392f2458f93dc798779a42b8369558 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5728712 Reviewed-by: Xiaoqian Dai <[email protected]> Commit-Queue: Avi Drissman <[email protected]> Reviewed-by: David Dorwin <[email protected]> Code-Coverage: [email protected] <[email protected]> Reviewed-by: Dave Tapuska <[email protected]> Cr-Commit-Position: refs/heads/main@{#1331840}
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc index 2204d098..0e6ca45 100644 --- a/ash/host/ash_window_tree_host_unified.cc +++ b/ash/host/ash_window_tree_host_unified.cc
@@ -3,7 +3,6 @@ // found in the LICENSE file. #include "ash/host/ash_window_tree_host_unified.h" -#include "base/memory/raw_ptr.h" #include <memory> #include <tuple> @@ -13,8 +12,10 @@ #include "ash/host/root_window_transformer.h" #include "base/check.h" #include "base/containers/contains.h" +#include "base/memory/raw_ptr.h" #include "base/notreached.h" #include "base/ranges/algorithm.h" +#include "base/types/cxx23_to_underlying.h" #include "ui/aura/window.h" #include "ui/aura/window_event_dispatcher.h" #include "ui/aura/window_targeter.h" @@ -44,7 +45,8 @@ if (root == src_root_ && !event->target()) { return root; } else { - NOTREACHED_IN_MIGRATION() << "event type:" << event->type(); + NOTREACHED_IN_MIGRATION() + << "event type:" << base::to_underlying(event->type()); return aura::WindowTargeter::FindTargetForEvent(root, event); } }