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

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: Created 5 years, 10 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 83f29714f43fc036ca6371e82a0fa4f2ebf2827e..b65d083a4bdb8695c3e38db0cb863b31d262e2f1 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -964,6 +964,13 @@ bool AppWindow::IsFullscreenForTabOrPending(const content::WebContents* source)
return IsHtmlApiFullscreen();
}
+blink::WebDisplayMode AppWindow::GetDisplayMode(
+ const content::WebContents* source) const {
+ if (IsFullscreen() && !IsHtmlApiFullscreen())
+ return blink::WebDisplayModeFullscreen;
+ return blink::WebDisplayModeStandalone;
+}
+
void AppWindow::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
« content/renderer/render_view_impl.cc ('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