diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 16:13:18 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 16:13:18 +0000 |
commit | 48495594c601e34b8caef655395bddaacc0cd967 (patch) | |
tree | bc6778bc953eb812f34c2bde3c44ab4449c16034 /chrome/browser/renderer_host/render_widget_helper.h | |
parent | 3deb16cc9c3938cbe4e496930ff428389f8b35d1 (diff) | |
download | chromium_src-48495594c601e34b8caef655395bddaacc0cd967.zip chromium_src-48495594c601e34b8caef655395bddaacc0cd967.tar.gz chromium_src-48495594c601e34b8caef655395bddaacc0cd967.tar.bz2 |
Use RenderWidget(Host) for full screen
Add RenderWidgetFullscreen(Host) subclasses, InitAsFullscreen method
to RenderWidgetHostView, and add two new ipc messages for creating
and showing full screen.
Add createFullscreenWindow to RenderView that creates RenderWidgetFullscreen
and sends message to browser which eventually creates RenderWidgetFullscreenHost.
The show method on RenderWidgetFullscreen sends message to parent
RenderViewHost in browser, which calls InitAsFullscreen on the view.
BUG=16735
TEST=RenderViewHostTest.CreateFullscreenWidget
Review URL: http://codereview.chromium.org/3055009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_helper.h')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_helper.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_helper.h b/chrome/browser/renderer_host/render_widget_helper.h index a322349..6cad1dc 100644 --- a/chrome/browser/renderer_host/render_widget_helper.h +++ b/chrome/browser/renderer_host/render_widget_helper.h @@ -130,6 +130,9 @@ class RenderWidgetHelper void CreateNewWidget(int opener_id, WebKit::WebPopupType popup_type, int* route_id); + void CreateNewFullscreenWidget(int opener_id, + WebKit::WebPopupType popup_type, + int* route_id); #if defined(OS_MACOSX) // Called on the IO thread to handle the allocation of a TransportDIB. If @@ -177,6 +180,11 @@ class RenderWidgetHelper int route_id, WebKit::WebPopupType popup_type); + // Called on the UI thread to create a full screen widget. + void OnCreateFullscreenWidgetOnUI(int opener_id, + int route_id, + WebKit::WebPopupType popup_type); + // Called on the IO thread to cancel resource requests for the render widget. void OnCancelResourceRequests(int render_widget_id); |