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

Unified Diff: services/native_viewport/native_viewport_impl.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 | « services/native_support/redirectors.cc ('k') | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/native_viewport_impl.cc
diff --git a/services/native_viewport/native_viewport_impl.cc b/services/native_viewport/native_viewport_impl.cc
index ce258332a8acf7acecf63e12da964b1bd735fb9a..6b8658687e9ae51705c388c72ac84c8e8360a74e 100644
--- a/services/native_viewport/native_viewport_impl.cc
+++ b/services/native_viewport/native_viewport_impl.cc
@@ -128,7 +128,7 @@ bool NativeViewportImpl::OnEvent(mojo::EventPtr event) {
mojo::NativeViewportEventDispatcher::OnEventCallback callback;
switch (event->action) {
- case mojo::EVENT_TYPE_POINTER_MOVE: {
+ case mojo::EventType::POINTER_MOVE: {
// TODO(sky): add logic to remember last event location and not send if
// the same.
if (pointers_waiting_on_ack_.count(event->pointer_data->pointer_id))
@@ -141,11 +141,11 @@ bool NativeViewportImpl::OnEvent(mojo::EventPtr event) {
break;
}
- case mojo::EVENT_TYPE_POINTER_CANCEL:
+ case mojo::EventType::POINTER_CANCEL:
pointers_waiting_on_ack_.clear();
break;
- case mojo::EVENT_TYPE_POINTER_UP:
+ case mojo::EventType::POINTER_UP:
pointers_waiting_on_ack_.erase(event->pointer_data->pointer_id);
break;
« no previous file with comments | « services/native_support/redirectors.cc ('k') | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698