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

Unified Diff: components/mus/ws/window_tree_host_impl.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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 | « components/mus/ws/window_tree_host_connection.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_host_impl.cc
diff --git a/components/mus/ws/window_tree_host_impl.cc b/components/mus/ws/window_tree_host_impl.cc
index 446b32be47d82fe872b576e6ff23e5451481278b..ef92138123e19ddf399a9b0ba0d6972a8551e4c7 100644
--- a/components/mus/ws/window_tree_host_impl.cc
+++ b/components/mus/ws/window_tree_host_impl.cc
@@ -33,7 +33,7 @@ bool EventsCanBeCoalesced(const mojom::Event& one, const mojom::Event& two) {
if (one.action != two.action || one.flags != two.flags)
return false;
// TODO(sad): wheel events can also be merged.
- if (one.action != mojom::EVENT_TYPE_POINTER_MOVE)
+ if (one.action != mojom::EventType::POINTER_MOVE)
return false;
DCHECK(one.pointer_data);
DCHECK(two.pointer_data);
@@ -45,7 +45,7 @@ bool EventsCanBeCoalesced(const mojom::Event& one, const mojom::Event& two) {
}
mojom::EventPtr CoalesceEvents(mojom::EventPtr first, mojom::EventPtr second) {
- DCHECK_EQ(first->action, mojom::EVENT_TYPE_POINTER_MOVE)
+ DCHECK_EQ(first->action, mojom::EventType::POINTER_MOVE)
<< " Non-move events cannot be merged yet.";
// For mouse moves, the new event just replaces the old event.
return second;
@@ -328,7 +328,7 @@ void WindowTreeHostImpl::DispatchInputEventToWindowImpl(ServerWindow* target,
bool in_nonclient_area,
mojom::EventPtr event) {
if (event->pointer_data &&
- event->pointer_data->kind == mojom::PointerKind::POINTER_KIND_MOUSE) {
+ event->pointer_data->kind == mojom::PointerKind::MOUSE) {
DCHECK(event_dispatcher_.mouse_cursor_source_window());
UpdateNativeCursor(
event_dispatcher_.mouse_cursor_source_window()->cursor());
« no previous file with comments | « components/mus/ws/window_tree_host_connection.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698