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

Unified Diff: ash/display/shared_display_edge_indicator.cc

Issue 286733002: [Refactor] Consolidate the logic for whether a widget can be activated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: ash/display/shared_display_edge_indicator.cc
diff --git a/ash/display/shared_display_edge_indicator.cc b/ash/display/shared_display_edge_indicator.cc
index bf2c047b3e9ec70b859959011e99154c28cfa0a6..5be5d25359bfa8b98fc7c5a20ecc027631eb8720 100644
--- a/ash/display/shared_display_edge_indicator.cc
+++ b/ash/display/shared_display_edge_indicator.cc
@@ -49,7 +49,7 @@ views::Widget* CreateWidget(const gfx::Rect& bounds,
views::Widget* widget = new views::Widget;
views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
- params.can_activate = false;
+ params.activatable = views::Widget::InitParams::ACTIVATABLE_NO;
params.keep_on_top = true;
// We set the context to the primary root window; this is OK because the ash
// stacking controller will still place us in the correct RootWindow.

Powered by Google App Engine
This is Rietveld 408576698