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

Unified Diff: examples/wm_flow/app/app.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/spinning_cube/spinning_cube_app.cc ('k') | examples/wm_flow/wm/wm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wm_flow/app/app.cc
diff --git a/examples/wm_flow/app/app.cc b/examples/wm_flow/app/app.cc
index dcb7ee2833a08776706e4fbb6df59d325832f3eb..af6705c0c89c87ba8d1b111627516de20910f62b 100644
--- a/examples/wm_flow/app/app.cc
+++ b/examples/wm_flow/app/app.cc
@@ -155,7 +155,7 @@ class WMFlowApp : 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_LEFT_MOUSE_BUTTON) {
OpenNewWindow();
}
« no previous file with comments | « examples/spinning_cube/spinning_cube_app.cc ('k') | examples/wm_flow/wm/wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698