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

Unified Diff: views/examples/examples_main.cc

Issue 5857002: no native implementation of Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 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
Index: views/examples/examples_main.cc
diff --git a/views/examples/examples_main.cc b/views/examples/examples_main.cc
index 7b4b055e5770ffe62ba87adbb439b282d3465e83..e64af9721d9aaa2f5faa5900ab70142863a96ed7 100644
--- a/views/examples/examples_main.cc
+++ b/views/examples/examples_main.cc
@@ -21,6 +21,7 @@
#include "views/examples/single_split_view_example.h"
// Slider is not yet ported to Windows.
#if defined(OS_LINUX)
+#include "views/controls/textfield/native_textfield_view.h"
#include "views/examples/slider_example.h"
#endif
#include "views/examples/tabbed_pane_example.h"
@@ -167,6 +168,12 @@ int main(int argc, char** argv) {
#endif
CommandLine::Init(argc, argv);
+
+#if defined(OS_LINUX)
+ if (CommandLine::ForCurrentProcess()->HasSwitch("enable-textfield-view"))
+ views::NativeTextfieldView::SetEnableTextfieldView(true);
+#endif
+
examples::ExamplesMain main;
main.Run();

Powered by Google App Engine
This is Rietveld 408576698