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

Unified Diff: ash/system/tray/tray_event_filter.h

Issue 1934123004: mash: Fix shelf overflow bubble not closing on click outside its bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2openoverflow
Patch Set: rebase Created 4 years, 8 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/shelf/overflow_bubble.cc ('k') | ash/system/tray/tray_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_event_filter.h
diff --git a/ash/system/tray/tray_event_filter.h b/ash/system/tray/tray_event_filter.h
index 9ab45d4fe4717812333a3149344e3081ee0aa2b9..c38dd2b23a0f931f9b5ab0f11df0eefc0333e28c 100644
--- a/ash/system/tray/tray_event_filter.h
+++ b/ash/system/tray/tray_event_filter.h
@@ -10,6 +10,10 @@
#include "base/macros.h"
#include "ui/views/pointer_watcher.h"
+namespace gfx {
+class Point;
+}
+
namespace ui {
class LocatedEvent;
}
@@ -28,11 +32,14 @@ class TrayEventFilter : public views::PointerWatcher {
void RemoveWrapper(TrayBubbleWrapper* wrapper);
// views::PointerWatcher:
- void OnMousePressed(const ui::MouseEvent& event) override;
- void OnTouchPressed(const ui::TouchEvent& event) override;
+ void OnMousePressed(const ui::MouseEvent& event,
+ const gfx::Point& location_in_screen) override;
+ void OnTouchPressed(const ui::TouchEvent& event,
+ const gfx::Point& location_in_screen) override;
private:
- void ProcessLocatedEvent(const ui::LocatedEvent& event);
+ void ProcessLocatedEvent(const ui::LocatedEvent& event,
+ const gfx::Point& location_in_screen);
std::set<TrayBubbleWrapper*> wrappers_;
« no previous file with comments | « ash/shelf/overflow_bubble.cc ('k') | ash/system/tray/tray_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698