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

Unified Diff: mojo/examples/window_manager/window_manager.cc

Issue 413633003: Mojo: Introduces mojo::EventType and mojo::EventFlags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 6 years, 5 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
Index: mojo/examples/window_manager/window_manager.cc
diff --git a/mojo/examples/window_manager/window_manager.cc b/mojo/examples/window_manager/window_manager.cc
index 0b08a522a311699dd80d307e142b67826b3bc720..1ef062c2c4f3bd002c9bdd8bd99302b52b668c41 100644
--- a/mojo/examples/window_manager/window_manager.cc
+++ b/mojo/examples/window_manager/window_manager.cc
@@ -374,7 +374,7 @@ class WindowManager : public ApplicationDelegate,
}
virtual void DispatchEvent(View* target, EventPtr event) OVERRIDE {
// TODO(beng): More sophisticated focus handling than this is required!
- if (event->action == ui::ET_MOUSE_PRESSED &&
+ if (event->action == EVENT_TYPE_MOUSE_PRESSED &&
!IsDescendantOfKeyboard(target)) {
target->node()->SetFocus();
}
« no previous file with comments | « mojo/examples/sample_app/gles2_client_impl.cc ('k') | mojo/services/html_viewer/blink_input_events_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698