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

Unified Diff: components/exo/pointer.cc

Issue 1559163002: Clean up event flags a bit: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment 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/exo/keyboard.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.cc
diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
index 93e7b0ff04fc822406980c70c1bb4d82e2071b7a..f2ca1eccd75ae82043b4bb85988224fafc1565f0 100644
--- a/components/exo/pointer.cc
+++ b/components/exo/pointer.cc
@@ -44,12 +44,8 @@ void Pointer::OnMouseEvent(ui::MouseEvent* event) {
}
// Second generate an enter event if focus moved to a new target.
if (target) {
- int button_flags =
- event->flags() &
- (ui::EF_LEFT_MOUSE_BUTTON | ui::EF_MIDDLE_MOUSE_BUTTON |
- ui::EF_RIGHT_MOUSE_BUTTON | ui::EF_BACK_MOUSE_BUTTON |
- ui::EF_FORWARD_MOUSE_BUTTON);
- delegate_->OnPointerEnter(target, event->location(), button_flags);
+ delegate_->OnPointerEnter(target, event->location(),
+ event->button_flags());
location_ = event->location();
focus_ = target;
focus_->AddSurfaceObserver(this);
« no previous file with comments | « components/exo/keyboard.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698