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

Unified Diff: content/public/browser/web_contents_delegate.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: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index e31828b2ec9c79e2e511e62724f06c4f521fc4e7..160cc8140534329576b4fcfa53306599b36feb22 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -348,6 +348,13 @@ class CONTENT_EXPORT WebContentsDelegate {
int request_id,
const base::FilePath& path) {}
+ // Returns true if the delegate will embed a WebContents-owned fullscreen
+ // render widget. In this case, ToggleFullscreenModeForTab() is used to enter
jam 2013/09/11 02:48:26 nit: don't mention what chrome code does in src/co
miu 2013/09/11 03:57:03 Done.
+ // fullscreen mode and the browser view will access the widget by calling
+ // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned,
+ // WebContents will be responsible for showing the fullscreen widget.
+ virtual bool EmbedsFullscreenWidget() const;
+
// Called when the renderer puts a tab into or out of fullscreen mode.
virtual void ToggleFullscreenModeForTab(WebContents* web_contents,
bool enter_fullscreen) {}

Powered by Google App Engine
This is Rietveld 408576698