| Index: chrome/browser/extensions/extension_file_browser_private_api.cc
|
| diff --git a/chrome/browser/extensions/extension_file_browser_private_api.cc b/chrome/browser/extensions/extension_file_browser_private_api.cc
|
| index e2473b2960f803edaacd40f7360881ae1a082a73..aa7478f5b42ec42a2d15625b7bdf4e1ba494a338 100644
|
| --- a/chrome/browser/extensions/extension_file_browser_private_api.cc
|
| +++ b/chrome/browser/extensions/extension_file_browser_private_api.cc
|
| @@ -26,6 +26,7 @@
|
| #include "chrome/browser/prefs/scoped_user_pref_update.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
| +#include "chrome/browser/ui/browser_window.h"
|
| #include "chrome/browser/ui/views/select_file_dialog_extension.h"
|
| #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
|
| #include "chrome/common/chrome_switches.h"
|
| @@ -1694,3 +1695,21 @@ bool FileDialogStringsFunction::RunImpl() {
|
|
|
| return true;
|
| }
|
| +
|
| +bool ToggleFullscreenFunction::RunImpl() {
|
| + Browser* browser = GetCurrentBrowser();
|
| + if (browser) {
|
| + browser->ToggleFullscreenMode(false);
|
| + }
|
| + return true;
|
| +}
|
| +
|
| +// There is no notification to tell us when the user enters/leaves the
|
| +// fullscreen mode using the built-in Chrome controls. All we can do is
|
| +// query the current fullscreen state.
|
| +bool IsFullscreenFunction::RunImpl() {
|
| + Browser* browser = GetCurrentBrowser();
|
| + result_.reset(Value::CreateBooleanValue(
|
| + browser && browser->window() && browser->window()->IsFullscreen()));
|
| + return true;
|
| +}
|
|
|