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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 7461059: Fullscreen JS API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaks Created 9 years, 5 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 5ff62fe60c702bd72f7c49c85b58d896cc1eda19..eaa1665afa05244818b86506442f2ed6e46175d5 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -38,6 +38,7 @@
#include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
#include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
#include "chrome/browser/tab_contents/tab_util.h"
+#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
#include "chrome/common/child_process_logging.h"
@@ -725,6 +726,17 @@ void ChromeContentBrowserClient::ChooseSavePath(
save_package, suggested_path, can_save_as_complete);
}
+void ChromeContentBrowserClient::EnterFullscreenMode() {
+ // TODO: Not sure what the best way to get a hold of the browser here is.
+ Browser* browser = BrowserList::GetLastActive();
+ browser->ToggleFullscreenMode();
+}
+
+void ChromeContentBrowserClient::ExitFullscreenMode() {
+ Browser* browser = BrowserList::GetLastActive();
+ browser->ToggleFullscreenMode();
+}
+
#if defined(OS_LINUX)
int ChromeContentBrowserClient::GetCrashSignalFD(
const std::string& process_type) {

Powered by Google App Engine
This is Rietveld 408576698