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

Unified Diff: ash/common/wm_shell.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
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index 3db0a06101b8f4178ba92b0bbf246f701d6bb07e..ffbb9d1fa1838bcaaa82c36665065464dc3a6b6b 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 {
@@ -324,11 +325,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.

Powered by Google App Engine
This is Rietveld 408576698