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

Unified Diff: extensions/browser/app_window/app_window.cc

Issue 964403003: Make it possible to set the display mode from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decouple getting display mode and renderer-initiated fullscreen mode code paths Created 5 years, 9 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: extensions/browser/app_window/app_window.cc
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
index 0689b136685651ce0300c4aef4bb2438961ce7ac..4fcde59d23dcd12d434f733593d6f961a3372eb9 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -953,6 +953,12 @@ bool AppWindow::IsFullscreenForTabOrPending(const content::WebContents* source)
return IsHtmlApiFullscreen();
}
+blink::WebDisplayMode AppWindow::GetDisplayMode(
+ const content::WebContents* source) const {
+ return IsFullscreen() ? blink::WebDisplayModeFullscreen :
+ blink::WebDisplayModeStandalone;
+}
+
void AppWindow::OnExtensionUnloaded(BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionInfo::Reason reason) {
« content/renderer/render_widget.h ('K') | « extensions/browser/app_window/app_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698