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

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

Issue 1375313006: For c++, Generate enum classes instead of enum from mojom. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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/window_manager/window_manager.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 85d516a59f132852398b78e8f5696ded9c1aaf85..691523db3f29ba5d602b061b7250ff8e9686d799 100644
--- a/examples/wm_flow/app/app.cc
+++ b/examples/wm_flow/app/app.cc
@@ -162,8 +162,8 @@ 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_POINTER_UP &&
- event->flags & mojo::EVENT_FLAGS_LEFT_MOUSE_BUTTON) {
+ if (event->action == mojo::EventType::POINTER_UP &&
+ event->flags & mojo::EventFlags::LEFT_MOUSE_BUTTON) {
OpenNewWindow();
}
}
« no previous file with comments | « examples/window_manager/window_manager.cc ('k') | examples/wm_flow/wm/wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698