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

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

Issue 23477051: Embed Flash Fullscreen widget within browser window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add caution comment to chrome_switches.cc. Created 7 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/cocoa/tab_contents/tab_contents_controller.h » ('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 2056b53aa9aa3ad4c4a564706690a838d6fa7325..e49744159d911d05f4315f202957961970e2efd0 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1603,6 +1603,19 @@ void Browser::EnumerateDirectory(WebContents* web_contents,
FileSelectHelper::EnumerateDirectory(web_contents, request_id, path);
}
+bool Browser::EmbedsFullscreenWidget() const {
+#if defined(TOOLKIT_GTK)
+ // TODO(miu): On GTK, the balloon widget for Tab/HTML5 fullscreen needs to be
+ // fixed before we can implement embedded fullscreen widgets.
+ // http://crbug.com/286545
+ return false;
+#else
+ // TODO(miu): Make this feature switchable in about:flags?
+ return CommandLine::ForCurrentProcess()->
+ HasSwitch(switches::kEmbedFlashFullscreen);
+#endif
+}
+
void Browser::ToggleFullscreenModeForTab(WebContents* web_contents,
bool enter_fullscreen) {
fullscreen_controller_->ToggleFullscreenModeForTab(web_contents,
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698