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

Unified Diff: ui/views/widget/widget.cc

Issue 8872043: Don't activate TYPE_CONTROL widget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 472e284f049ac27602741b7d9a41caa7d3c4769d..b186728d9a2d024897c1bf6a2f88b8b6ecdbc0da 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -133,7 +133,8 @@ Widget::InitParams::InitParams(Type type)
transient(type == TYPE_BUBBLE || type == TYPE_POPUP || type == TYPE_MENU),
transparent(false),
accept_events(true),
- can_activate(type != TYPE_POPUP && type != TYPE_MENU),
+ can_activate(
+ type != TYPE_POPUP && type != TYPE_MENU && type != TYPE_CONTROL),
keep_on_top(type == TYPE_MENU),
ownership(NATIVE_WIDGET_OWNS_WIDGET),
mirror_origin_in_rtl(false),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698