Index: ui/views/controls/webview/webview.h |
diff --git a/ui/views/controls/webview/webview.h b/ui/views/controls/webview/webview.h |
index 05c447db8a944b98697f1dfac3bff85c6b5af40c..6c9747f805db4697a1d048976b65eab516f8f430 100644 |
--- a/ui/views/controls/webview/webview.h |
+++ b/ui/views/controls/webview/webview.h |
@@ -43,6 +43,10 @@ class WEBVIEW_EXPORT WebView : public View, |
// those it implicitly creates via GetWebContents() above. |
void SetWebContents(content::WebContents* web_contents); |
+ // If |mode| is true, WebView will spawn a WebContentsObserver to switch |
+ // between the WebContentsView and the fullscreen render widget. |
+ void SetEmbedFullscreenWidgetMode(bool mode); |
+ |
content::WebContents* web_contents() { return web_contents_; } |
content::BrowserContext* browser_context() { return browser_context_; } |
@@ -83,6 +87,8 @@ class WEBVIEW_EXPORT WebView : public View, |
virtual const char* GetClassName() const OVERRIDE; |
private: |
+ class FullscreenObserver; |
+ |
// Overridden from View: |
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
virtual void ViewHierarchyChanged( |
@@ -103,9 +109,11 @@ class WEBVIEW_EXPORT WebView : public View, |
// Overridden from content::WebContentsDelegate: |
virtual void WebContentsFocused(content::WebContents* web_contents) OVERRIDE; |
+ virtual bool EmbedsFullscreenWidget() const OVERRIDE; |
void AttachWebContents(); |
void DetachWebContents(); |
+ void ReattachForFullscreenChange(bool enter_fullscreen); |
void RenderViewHostChanged(content::RenderViewHost* old_host, |
content::RenderViewHost* new_host); |
@@ -120,6 +128,8 @@ class WEBVIEW_EXPORT WebView : public View, |
NativeViewHost* wcv_holder_; |
scoped_ptr<content::WebContents> wc_owner_; |
content::WebContents* web_contents_; |
+ scoped_ptr<FullscreenObserver> fullscreen_observer_; |
+ bool is_embedding_fullscreen_widget_; |
sky
2013/09/10 19:38:58
Add a description.
miu
2013/09/11 03:57:03
Done.
|
content::BrowserContext* browser_context_; |
content::NotificationRegistrar registrar_; |
bool allow_accelerators_; |