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

Unified Diff: ash/common/shelf/overflow_bubble.cc

Issue 2180683003: NOSUBMIT: PointerWatcher observes all pointer events, with moves optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « ash/common/shelf/overflow_bubble.h ('k') | ash/common/system/tray/tray_event_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/overflow_bubble.cc
diff --git a/ash/common/shelf/overflow_bubble.cc b/ash/common/shelf/overflow_bubble.cc
index 0a5428ab3d96e75b88fbd295f1dc538efe66bdd2..97a5749e6f1e16237b529dd19fee593e4064a564 100644
--- a/ash/common/shelf/overflow_bubble.cc
+++ b/ash/common/shelf/overflow_bubble.cc
@@ -71,16 +71,13 @@ void OverflowBubble::ProcessPressedEvent(
}
}
-void OverflowBubble::OnMousePressed(const ui::MouseEvent& event,
- const gfx::Point& location_in_screen,
- views::Widget* target) {
- ProcessPressedEvent(location_in_screen);
-}
-
-void OverflowBubble::OnTouchPressed(const ui::TouchEvent& event,
- const gfx::Point& location_in_screen,
- views::Widget* target) {
- ProcessPressedEvent(location_in_screen);
+void OverflowBubble::OnPointerEventObserved(
+ const ui::LocatedEvent& event,
+ const gfx::Point& location_in_screen,
+ views::Widget* target) {
+ if (event.type() == ui::ET_MOUSE_PRESSED ||
+ event.type() == ui::ET_TOUCH_PRESSED)
+ ProcessPressedEvent(location_in_screen);
}
void OverflowBubble::OnWidgetDestroying(views::Widget* widget) {
« no previous file with comments | « ash/common/shelf/overflow_bubble.h ('k') | ash/common/system/tray/tray_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698