summaryrefslogtreecommitdiffstats
path: root/views/controls
diff options
context:
space:
mode:
authorsaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-30 23:49:39 +0000
committersaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-30 23:49:39 +0000
commit3be6c69d07727f429c108a0c649bbbfb20403a47 (patch)
tree48f341091c9ba0c58ec737c6636d749b6eb8ff2b /views/controls
parentf9a45b0b8d83d75bb5a9aa22b13ba06a2f7be08c (diff)
downloadchromium_src-3be6c69d07727f429c108a0c649bbbfb20403a47.zip
chromium_src-3be6c69d07727f429c108a0c649bbbfb20403a47.tar.gz
chromium_src-3be6c69d07727f429c108a0c649bbbfb20403a47.tar.bz2
Fix to pure view test on touch.
TBR=ben@chromium.org BUG=none TEST=AccessibilityEventRouterViewsTest.TestFocusNotification Review URL: http://codereview.chromium.org/7278010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/native/native_view_host_gtk.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/controls/native/native_view_host_gtk.cc b/views/controls/native/native_view_host_gtk.cc
index fbe4d3e..50255f9 100644
--- a/views/controls/native/native_view_host_gtk.cc
+++ b/views/controls/native/native_view_host_gtk.cc
@@ -11,6 +11,7 @@
#include "views/controls/native/native_view_host.h"
#include "views/controls/native/native_view_host_views.h"
#include "views/focus/focus_manager.h"
+#include "views/views_delegate.h"
#include "views/widget/gtk_views_fixed.h"
#include "views/widget/native_widget_gtk.h"
#include "views/widget/widget.h"
@@ -377,7 +378,8 @@ gboolean NativeViewHostGtk::CallFocusIn(GtkWidget* widget,
// static
NativeViewHostWrapper* NativeViewHostWrapper::CreateWrapper(
NativeViewHost* host) {
- if (Widget::IsPureViews())
+ if (Widget::IsPureViews() &&
+ views::ViewsDelegate::views_delegate->GetDefaultParentView())
return new NativeViewHostViews(host);
return new NativeViewHostGtk(host);
}