summaryrefslogtreecommitdiffstats
path: root/content/test
diff options
context:
space:
mode:
authorrosca@adobe.com <rosca@adobe.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-10 15:37:19 +0000
committerrosca@adobe.com <rosca@adobe.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-10 15:37:19 +0000
commit83918ec0ba0e4b63f6e56dfb03e7ca38ae1f124b (patch)
tree67e1a2ddc83e58171b78cc0b55a1345f27a83ca2 /content/test
parent716290b0e324e6771abb2440a431711b04aad4e2 (diff)
downloadchromium_src-83918ec0ba0e4b63f6e56dfb03e7ca38ae1f124b.zip
chromium_src-83918ec0ba0e4b63f6e56dfb03e7ca38ae1f124b.tar.gz
chromium_src-83918ec0ba0e4b63f6e56dfb03e7ca38ae1f124b.tar.bz2
Allow embedders to provide a custom view for popup (select box) widgets,
the same way they have the ability to provide a custom view for page widgets. All the widget views are created using WebContentsView, which can be overriden by embedders with ContentBrowserClient::OverrideCreateWebContentsView Contributed by rosca@adobe.com BUG=155761 Review URL: https://chromiumcodereview.appspot.com/11773042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test')
-rw-r--r--content/test/test_web_contents_view.cc5
-rw-r--r--content/test/test_web_contents_view.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/content/test/test_web_contents_view.cc b/content/test/test_web_contents_view.cc
index 9066714..e5a898f 100644
--- a/content/test/test_web_contents_view.cc
+++ b/content/test/test_web_contents_view.cc
@@ -51,6 +51,11 @@ RenderWidgetHostView* TestWebContentsView::CreateViewForWidget(
return NULL;
}
+RenderWidgetHostView* TestWebContentsView::CreateViewForPopupWidget(
+ RenderWidgetHost* render_widget_host) {
+ return NULL;
+}
+
gfx::NativeView TestWebContentsView::GetNativeView() const {
return gfx::NativeView();
}
diff --git a/content/test/test_web_contents_view.h b/content/test/test_web_contents_view.h
index 5a39f2a..a639416 100644
--- a/content/test/test_web_contents_view.h
+++ b/content/test/test_web_contents_view.h
@@ -41,6 +41,8 @@ class TestWebContentsView : public WebContentsView,
gfx::NativeView context) OVERRIDE;
virtual RenderWidgetHostView* CreateViewForWidget(
RenderWidgetHost* render_widget_host) OVERRIDE;
+ virtual RenderWidgetHostView* CreateViewForPopupWidget(
+ RenderWidgetHost* render_widget_host) OVERRIDE;
virtual gfx::NativeView GetNativeView() const OVERRIDE;
virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;