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

Unified Diff: ui/views/controls/webview/webview.h

Issue 23477051: Embed Flash Fullscreen widget within browser window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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
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_;

Powered by Google App Engine
This is Rietveld 408576698