summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-30 11:54:43 +0000
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-30 11:54:43 +0000
commitab733dd78219570f920f2a68c85aff89273ac175 (patch)
treee0661c66edd8783f751b7012e9f2dc9ae958d21e
parentd3144c4d8978d603e78391c16a68203f68e04701 (diff)
downloadchromium_src-ab733dd78219570f920f2a68c85aff89273ac175.zip
chromium_src-ab733dd78219570f920f2a68c85aff89273ac175.tar.gz
chromium_src-ab733dd78219570f920f2a68c85aff89273ac175.tar.bz2
Set long-press affordance widget as non-focusable
The widget showing long-press affordance was focusable, but since it was inserted in Ash's OverlayContainer layer which was non-focusable, the affordance was ultimately non-focusable. After a recent change that made OverlayContainer focusable, the affordance widget became focusable which caused some bugs. So, the affordance widget itself is now set as non-focusable. BUG=324516 Review URL: https://codereview.chromium.org/97483002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237985 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ash/wm/gestures/long_press_affordance_handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc
index 45a995e..2a96f07 100644
--- a/ash/wm/gestures/long_press_affordance_handler.cc
+++ b/ash/wm/gestures/long_press_affordance_handler.cc
@@ -65,6 +65,7 @@ views::Widget* CreateAffordanceWidget(aura::Window* root_window) {
params.type = views::Widget::InitParams::TYPE_WINDOW_FRAMELESS;
params.keep_on_top = true;
params.accept_events = false;
+ params.can_activate = false;
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
params.context = root_window;
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;