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

Unified Diff: ash/common/system/tray/tray_event_filter.cc

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/shelf/shelf_tooltip_manager.cc ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_event_filter.cc
diff --git a/ash/common/system/tray/tray_event_filter.cc b/ash/common/system/tray/tray_event_filter.cc
index 8f83890d297d5e2d684515e3faf12ccc4950539d..9f2c3d6a5a33ec651b25d0b5304a9311527ddf46 100644
--- a/ash/common/system/tray/tray_event_filter.cc
+++ b/ash/common/system/tray/tray_event_filter.cc
@@ -24,8 +24,10 @@ TrayEventFilter::~TrayEventFilter() {
void TrayEventFilter::AddWrapper(TrayBubbleWrapper* wrapper) {
bool was_empty = wrappers_.empty();
wrappers_.insert(wrapper);
- if (was_empty && !wrappers_.empty())
- WmShell::Get()->AddPointerWatcher(this);
+ if (was_empty && !wrappers_.empty()) {
+ const bool wants_moves = false;
+ WmShell::Get()->AddPointerWatcher(this, wants_moves);
+ }
}
void TrayEventFilter::RemoveWrapper(TrayBubbleWrapper* wrapper) {
« no previous file with comments | « ash/common/shelf/shelf_tooltip_manager.cc ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698