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

Unified Diff: views/widget/root_view.cc

Issue 5857002: no native implementation of Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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
« no previous file with comments | « views/views.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/root_view.cc
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index a0a752cbe55cf1ad4850284667cef64a8139e23a..82f32ba38e751f40f1010f8b9a684793c43388ba 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -22,6 +22,7 @@
#if defined(OS_LINUX)
#include "views/widget/widget_gtk.h"
+#include "views/controls/textfield/native_textfield_views.h"
#endif // defined(OS_LINUX)
namespace views {
@@ -617,11 +618,13 @@ View* RootView::GetFocusedView() {
View* view = focus_manager->GetFocusedView();
if (view && (view->GetRootView() == this))
return view;
-#if defined(TOUCH_UI)
- // hack to deal with two root views in touch
- // should be fixed by eliminating one of them
- if (view)
+
+#if defined(OS_LINUX)
+ if (view && NativeTextfieldViews::IsTextfieldViewsEnabled()) {
+ // hack to deal with two root views.
+ // should be fixed by eliminating one of them
return view;
+ }
#endif
return NULL;
}
« no previous file with comments | « views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698