summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-17 08:15:57 +0000
committerhshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-17 08:15:57 +0000
commit4c54fd88bf58f032fccae921a95426f6c04fe234 (patch)
tree3f369dfb6b9802a733b9fe3cfc8c2096c9930a49
parent09d0881225dee7a05ad92a00273a3037465313ab (diff)
downloadchromium_src-4c54fd88bf58f032fccae921a95426f6c04fe234.zip
chromium_src-4c54fd88bf58f032fccae921a95426f6c04fe234.tar.gz
chromium_src-4c54fd88bf58f032fccae921a95426f6c04fe234.tar.bz2
Allow mouse events to propagate in WindowOverview::OnMouseEvent().
Use event->SetHandled() instead of StopPropagating so that MouseCursorEventFilter can still see the event but it is prevented from being sent to the renderer. When cursor is inside a target window in overview mode, we still want to propagate MOUSE_MOVED events so that they can be received by MouseCursorEventFilter to update the cursor window. BUG=chrome-os-partner:28034 TEST=trybot and manual verification Review URL: https://codereview.chromium.org/238253009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264467 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ash/wm/overview/window_overview.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/wm/overview/window_overview.cc b/ash/wm/overview/window_overview.cc
index 8c7af63..fd618b3 100644
--- a/ash/wm/overview/window_overview.cc
+++ b/ash/wm/overview/window_overview.cc
@@ -264,7 +264,7 @@ void WindowOverview::OnMouseEvent(ui::MouseEvent* event) {
if (!target)
return;
- event->StopPropagation();
+ event->SetHandled();
if (event->type() != ui::ET_MOUSE_RELEASED)
return;