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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make try happy Created 5 years, 11 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
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9097bc97cf17fe860edbf1e13b756567843f5e7f..13d1c1dd94a498e00b3e37247bae8d32f9d88d62 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -372,9 +372,16 @@ class CONTENT_EXPORT WebContentsDelegate {
// 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) {}
+ // Called when the renderer puts a tab into fullscreen mode.
+ // |origin| is the origin of the initiating frame inside the |web_contents|.
+ // |origin| can be empty in which case the |web_contents| last committed
+ // URL's origin should be used.
+ virtual void EnterFullscreenModeForTab(WebContents* web_contents,
+ const GURL& origin) {}
+
+ // Called when the renderer puts a tab out of fullscreen mode.
+ virtual void ExitFullscreenModeForTab(WebContents*) {}
+
virtual bool IsFullscreenForTabOrPending(
const WebContents* web_contents) const;
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698