Index: ash/common/wm_shell.h |
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h |
index 7ab7c1cf02a294053dd6a4339e00fed11ef6cd69..bf5b830641778281f2227790eda0c534f0c2fc69 100644 |
--- a/ash/common/wm_shell.h |
+++ b/ash/common/wm_shell.h |
@@ -30,6 +30,7 @@ class Point; |
namespace views { |
class PointerWatcher; |
+enum class PointerWatcherEventTypes; |
} |
namespace ash { |
@@ -329,11 +330,14 @@ class ASH_EXPORT WmShell { |
void AddShellObserver(ShellObserver* observer); |
void RemoveShellObserver(ShellObserver* observer); |
- // If |wants_moves| is true PointerWatcher::OnPointerEventObserved() is |
- // called for pointer move events. Enabling pointer moves may incur a |
- // performance hit and should be avoided if possible. |
+ // If |events| is PointerWatcherEventTypes::MOVES, |
+ // PointerWatcher::OnPointerEventObserved() is called for pointer move events. |
+ // If |events| is PointerWatcherEventTypes::DRAGS, |
+ // PointerWatcher::OnPointerEventObserved() is called for pointer drag events. |
+ // Requesting pointer moves or drags may incur a performance hit and should be |
+ // avoided if possible. |
virtual void AddPointerWatcher(views::PointerWatcher* watcher, |
- bool wants_moves) = 0; |
+ views::PointerWatcherEventTypes events) = 0; |
virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
// TODO: Move these back to LockStateController when that has been moved. |