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

Unified Diff: examples/embedded_app/embedded_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/echo_terminal/main.cc ('k') | examples/ganesh_app/texture_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/embedded_app/embedded_app.cc
diff --git a/examples/embedded_app/embedded_app.cc b/examples/embedded_app/embedded_app.cc
index 7d0dcdb47b9bfcdcc29941dc1a4211a2427d3399..2554a0e912f02588d00cd6d9d22c07260c819f22 100644
--- a/examples/embedded_app/embedded_app.cc
+++ b/examples/embedded_app/embedded_app.cc
@@ -86,15 +86,15 @@ class EmbeddedApp
windows_.erase(view->id());
}
void OnViewInputEvent(View* view, const EventPtr& event) override {
- if (event->action == EVENT_TYPE_POINTER_UP &&
+ if (event->action == EventType::POINTER_UP &&
(static_cast<uint32_t>(event->flags) &
- static_cast<uint32_t>(EVENT_FLAGS_LEFT_MOUSE_BUTTON))) {
+ static_cast<uint32_t>(EventFlags::LEFT_MOUSE_BUTTON))) {
URLRequestPtr request(URLRequest::New());
request->url = "http://www.aaronboodman.com/z_dropbox/test.html";
NavigatorHostPtr navigator_host;
ConnectToService(windows_[view->id()]->embedder_service_provider.get(),
&navigator_host);
- navigator_host->RequestNavigate(TARGET_SOURCE_NODE, request.Pass());
+ navigator_host->RequestNavigate(Target::SOURCE_NODE, request.Pass());
}
}
« no previous file with comments | « examples/echo_terminal/main.cc ('k') | examples/ganesh_app/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698