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

Unified Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/browser/renderer_host/render_view_host_impl.h
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h
index bb2013a700d8c2550b4c7b2e66bad14ad2c58442..111403cf4eb5cb9054fd3f6cc6277f9f2e4cf2af 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -290,6 +290,10 @@ class CONTENT_EXPORT RenderViewHostImpl
// Creates a full screen RenderWidget.
void CreateNewFullscreenWidget(int route_id);
+ // Called from a RenderFrameHostImpl when Blink requests to go fullscreen.
+ // The |origin| is the origin of the last committed url of the frame.
+ void EnterFullscreen(const GURL& origin);
mlamouri (slow - plz ping) 2014/12/08 20:21:57 It would probably have been a better idea to go tr
Charlie Reis 2014/12/10 00:51:21 Hmm, it does seem like that would be a better opti
mlamouri (slow - plz ping) 2014/12/10 15:47:02 Done. But I had to move some things around. Render
Charlie Reis 2014/12/10 19:22:56 I agree, this is much better. And it's not a big
+
#if defined(ENABLE_BROWSER_CDMS)
MediaWebContentsObserver* media_web_contents_observer() {
return media_web_contents_observer_.get();
@@ -355,7 +359,6 @@ class CONTENT_EXPORT RenderViewHostImpl
void OnClose();
void OnRequestMove(const gfx::Rect& pos);
void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level);
- void OnToggleFullscreen(bool enter_fullscreen);
void OnDidContentsPreferredSizeChange(const gfx::Size& new_size);
void OnPasteFromSelectionClipboard();
void OnRouteCloseEvent();

Powered by Google App Engine
This is Rietveld 408576698