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

Unified Diff: ash/pointer_watcher_delegate_aura.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 | « no previous file | ash/pointer_watcher_delegate_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/pointer_watcher_delegate_aura.h
diff --git a/ash/pointer_watcher_delegate_aura.h b/ash/pointer_watcher_delegate_aura.h
index b237163c8bfa01a4e819bafc4aeaf2a7c9efa329..8a7eb662ca4232c8b88641da30528d4f3ee277fa 100644
--- a/ash/pointer_watcher_delegate_aura.h
+++ b/ash/pointer_watcher_delegate_aura.h
@@ -8,6 +8,14 @@
#include "base/observer_list.h"
#include "ui/events/event_handler.h"
+namespace gfx {
+class Point;
+}
+
+namespace ui {
+class LocatedEvent;
+}
+
namespace ash {
// Support for PointerWatchers in non-mus ash, implemented with a pre-target
@@ -27,6 +35,8 @@ class ASH_EXPORT PointerWatcherDelegateAura : public PointerWatcherDelegate,
void OnTouchEvent(ui::TouchEvent* event) override;
private:
+ gfx::Point GetLocationInScreen(const ui::LocatedEvent& event) const;
+
// Must be empty on destruction.
base::ObserverList<views::PointerWatcher, true> pointer_watchers_;
« no previous file with comments | « no previous file | ash/pointer_watcher_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698