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

Unified Diff: ash/common/wm_shell.h

Issue 2235363003: Wires up WmShellMus::Add/RemovePointerWatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pointer_watcher_capture
Patch Set: merge to tot again 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 | « ash/common/system/tray/tray_event_filter.cc ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index d23dd459bc50484f3bcbcbb9f33179143435372d..c064efded59347fd85c8fb0c3df29546c5ca8f04 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -315,7 +315,11 @@ class ASH_EXPORT WmShell {
void AddShellObserver(ShellObserver* observer);
void RemoveShellObserver(ShellObserver* observer);
- virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0;
+ // 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.
+ virtual void AddPointerWatcher(views::PointerWatcher* watcher,
+ bool wants_moves) = 0;
virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0;
// TODO: Move these back to LockStateController when that has been moved.
« no previous file with comments | « ash/common/system/tray/tray_event_filter.cc ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698