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

Unified Diff: chrome/browser/ui/browser.cc

Issue 1323733002: Set display mode for browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unneeded include. Created 5 years, 3 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 | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 72b0ce39095ed78ee8473b798750e3e460c0f5a4..a9407c1f19053d9bd54c766b481580d2d3dd3fde 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1734,6 +1734,17 @@ bool Browser::IsFullscreenForTabOrPending(
->IsFullscreenForTabOrPending(web_contents);
}
+blink::WebDisplayMode Browser::GetDisplayMode(
+ const WebContents* web_contents) const {
+ if (window_->IsFullscreen())
+ return blink::WebDisplayModeFullscreen;
+
+ if (is_type_popup())
+ return blink::WebDisplayModeStandalone;
+
+ return blink::WebDisplayModeBrowser;
+}
+
void Browser::RegisterProtocolHandler(WebContents* web_contents,
const std::string& protocol,
const GURL& url,
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698