summaryrefslogtreecommitdiffstats
path: root/ash/wm/panels
diff options
context:
space:
mode:
authortdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 23:07:08 +0000
committertdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 23:07:08 +0000
commitb80ae0ade35da0a317db4325db3485f18fc8c9d8 (patch)
tree092e1a50716f8b2e09e06a2143599423913205a5 /ash/wm/panels
parentfda5a922d9e1223ca915ab85fd8f4e16329f0776 (diff)
downloadchromium_src-b80ae0ade35da0a317db4325db3485f18fc8c9d8.zip
chromium_src-b80ae0ade35da0a317db4325db3485f18fc8c9d8.tar.gz
chromium_src-b80ae0ade35da0a317db4325db3485f18fc8c9d8.tar.bz2
Panel callout widgets should not accept events
Disallow panel callout widgets (the arrows between panels docked to the shelf and the shelf itself) from accepting events. Attempted taps on shelf buttons are often targeted to these callout widgets, and since the callout widgets do not handle the events in any way, they should just not be allowed to accept them in the first place. This allows for taps to be targeted to either the shelf button or the frame of the panel immediately above it. BUG=351348 TEST=none Review URL: https://codereview.chromium.org/201243004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/panels')
-rw-r--r--ash/wm/panels/panel_layout_manager.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ash/wm/panels/panel_layout_manager.cc b/ash/wm/panels/panel_layout_manager.cc
index 690c23a..bd70d023 100644
--- a/ash/wm/panels/panel_layout_manager.cc
+++ b/ash/wm/panels/panel_layout_manager.cc
@@ -235,6 +235,7 @@ class PanelCalloutWidget : public views::Widget {
params.bounds = ScreenUtil::ConvertRectToScreen(parent, gfx::Rect());
params.bounds.set_width(kArrowWidth);
params.bounds.set_height(kArrowHeight);
+ params.accept_events = false;
// Why do we need this and can_activate = false?
set_focus_on_creation(false);
Init(params);