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

Unified Diff: examples/wm_flow/wm/wm.cc

Issue 1033513003: Cleans up events to just the parts we're actually using (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 5 years, 9 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 | « examples/wm_flow/app/app.cc ('k') | mojo/converters/input_events/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wm_flow/wm/wm.cc
diff --git a/examples/wm_flow/wm/wm.cc b/examples/wm_flow/wm/wm.cc
index 492f9bbd00a75623dd74049a31e36d06cda12904..d1bae451d7c286f26d8a981394998f65fc68d9b4 100644
--- a/examples/wm_flow/wm/wm.cc
+++ b/examples/wm_flow/wm/wm.cc
@@ -76,7 +76,7 @@ class SimpleWM : public mojo::ApplicationDelegate,
// Overridden from mojo::ViewObserver:
void OnViewInputEvent(mojo::View* view,
const mojo::EventPtr& event) override {
- if (event->action == mojo::EVENT_TYPE_MOUSE_RELEASED &&
+ if (event->action == mojo::EVENT_TYPE_POINTER_UP &&
event->flags & mojo::EVENT_FLAGS_RIGHT_MOUSE_BUTTON &&
view->parent() == window_container_) {
CloseWindow(view);
« no previous file with comments | « examples/wm_flow/app/app.cc ('k') | mojo/converters/input_events/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698