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);
     }
   }