Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1090)

Unified Diff: components/mus/ws/window_tree.cc

Issue 2057793002: Reorganize event mojom files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos in comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/ws/window_manager_state_unittest.cc ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree.cc
diff --git a/components/mus/ws/window_tree.cc b/components/mus/ws/window_tree.cc
index 3b6f903901baa63b6cf506b69b13dc5bb0ba2b17..359355746ec03046e0f6a7dc50c76c96f6a14086 100644
--- a/components/mus/ws/window_tree.cc
+++ b/components/mus/ws/window_tree.cc
@@ -1141,16 +1141,13 @@ void WindowTree::SetEventObserver(mojom::EventMatcherPtr matcher,
DVLOG(1) << "SetEventObserver must specify an event type.";
return;
}
- const mojom::EventType event_type_whitelist[] = {
- mojom::EventType::POINTER_CANCEL,
- mojom::EventType::POINTER_DOWN,
- mojom::EventType::POINTER_MOVE,
- mojom::EventType::POINTER_UP,
- mojom::EventType::MOUSE_EXIT,
- mojom::EventType::WHEEL,
+ const ui::mojom::EventType event_type_whitelist[] = {
+ ui::mojom::EventType::POINTER_CANCEL, ui::mojom::EventType::POINTER_DOWN,
+ ui::mojom::EventType::POINTER_MOVE, ui::mojom::EventType::POINTER_UP,
+ ui::mojom::EventType::MOUSE_EXIT, ui::mojom::EventType::WHEEL,
};
bool allowed = false;
- for (mojom::EventType event_type : event_type_whitelist) {
+ for (ui::mojom::EventType event_type : event_type_whitelist) {
if (matcher->type_matcher->type == event_type) {
allowed = true;
break;
« no previous file with comments | « components/mus/ws/window_manager_state_unittest.cc ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698