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

Unified Diff: ui/views/controls/textfield/textfield.cc

Issue 14049016: Enable new dialog style transparency with Views Textfields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 1651c9b4b0a7e9a8e79efef0d581c8b88d83ae73..c5d26320d52d56b282385cc3563770f161740ea7 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -56,6 +56,9 @@ bool Textfield::IsViewsTextfieldEnabled() {
return false;
if (command_line->HasSwitch(switches::kEnableViewsTextfield))
return true;
+ // The new dialog style cannot host native Windows textfield controls.
+ if (command_line->HasSwitch(switches::kEnableNewDialogStyle))
+ return true;
#endif
return true;
}
« no previous file with comments | « no previous file | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698