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

Unified Diff: content/shell/browser/shell.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: Allowed include of "third_party/WebKit/public/platform/WebDisplayMode.h" Created 5 years, 8 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/shell/browser/shell.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index 209d4c30e003c4a6d4022bf41f29cd785642d8ba..167415798961581439bc0fdc516ee55ca4d67232 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -313,6 +313,15 @@ bool Shell::IsFullscreenForTabOrPending(const WebContents* web_contents) const {
#endif
}
+blink::WebDisplayMode Shell::GetDisplayMode(
+ const WebContents* web_contents) const {
+ // FIXME : should return blink::WebDisplayModeFullscreen wherever user puts a
scheib 2015/04/13 18:30:22 TODO comments. Cite a follow up issue.
+ // browser window into fullscreen (not only in case of renderer-initiated
+ // fullscreen mode).
+ return IsFullscreenForTabOrPending(web_contents) ?
+ blink::WebDisplayModeFullscreen : blink::WebDisplayModeBrowser;
+}
+
void Shell::RequestToLockMouse(WebContents* web_contents,
bool user_gesture,
bool last_unlocked_by_target) {
« no previous file with comments | « content/shell/browser/shell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698