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

Unified Diff: ash/aura/pointer_watcher_adapter.h

Issue 2271393002: Wires up drags to pointer watcher adapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebased. Created 4 years, 4 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/aura/pointer_watcher_adapter.cc » ('j') | ash/aura/pointer_watcher_adapter_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/pointer_watcher_adapter.h
diff --git a/ash/aura/pointer_watcher_adapter.h b/ash/aura/pointer_watcher_adapter.h
index b17f8cbd00b610c64f163353020738adf695e262..52ee4652af04aa457340aa3df51ce011791c19c8 100644
--- a/ash/aura/pointer_watcher_adapter.h
+++ b/ash/aura/pointer_watcher_adapter.h
@@ -21,6 +21,7 @@ class PointerEvent;
namespace views {
class PointerWatcher;
+enum class PointerWatcherEventTypes;
class Widget;
}
@@ -34,7 +35,8 @@ class ASH_EXPORT PointerWatcherAdapter : public ui::EventHandler {
~PointerWatcherAdapter() override;
// See WmShell::AddPointerWatcher() for details.
- void AddPointerWatcher(views::PointerWatcher* watcher, bool wants_moves);
+ void AddPointerWatcher(views::PointerWatcher* watcher,
+ views::PointerWatcherEventTypes events);
void RemovePointerWatcher(views::PointerWatcher* watcher);
// ui::EventHandler:
@@ -58,6 +60,7 @@ class ASH_EXPORT PointerWatcherAdapter : public ui::EventHandler {
// observers wanting moves too.
base::ObserverList<views::PointerWatcher, true> non_move_watchers_;
base::ObserverList<views::PointerWatcher, true> move_watchers_;
+ base::ObserverList<views::PointerWatcher, true> drag_watchers_;
DISALLOW_COPY_AND_ASSIGN(PointerWatcherAdapter);
};
« no previous file with comments | « no previous file | ash/aura/pointer_watcher_adapter.cc » ('j') | ash/aura/pointer_watcher_adapter_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698