Chromium Code Reviews| Index: ash/common/wm_shell.h |
| diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h |
| index 3db0a06101b8f4178ba92b0bbf246f701d6bb07e..318981cb41fa309e36411f25c3870f1ead0a5e1b 100644 |
| --- a/ash/common/wm_shell.h |
| +++ b/ash/common/wm_shell.h |
| @@ -29,6 +29,7 @@ class Point; |
| namespace views { |
| class PointerWatcher; |
| +enum class PointerWatcherEventTypes; |
| } |
| namespace ash { |
| @@ -325,10 +326,12 @@ class ASH_EXPORT WmShell { |
| 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. |
| + // called for pointer move events. If |wants_drags| is true |
|
sky
2016/08/26 19:58:57
Update comment.
sammiequon
2016/08/26 21:48:04
Done.
|
| + // PointerWatcher::OnPointerEventObserved() is called for pointer drag events. |
| + // Enabling 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. |