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

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

Issue 1252503007: Added flag simplified-fullscreen-ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added link to discussion bug 515747. Created 5 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/ui/exclusive_access/exclusive_access_manager.cc
diff --git a/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc b/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc
index e252a394a14003e4199fe14dda137b27a46aa412..88dba13825ba954e3f51320903903e6f9ba0dca5 100644
--- a/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc
+++ b/chrome/browser/ui/exclusive_access/exclusive_access_manager.cc
@@ -4,12 +4,14 @@
#include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h"
+#include "base/command_line.h"
#include "chrome/browser/app_mode/app_mode_utils.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
#include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
#include "chrome/browser/ui/exclusive_access/mouse_lock_controller.h"
+#include "chrome/common/chrome_switches.h"
using content::WebContents;
@@ -84,6 +86,21 @@ GURL ExclusiveAccessManager::GetExclusiveAccessBubbleURL() const {
return result;
}
+// static
+bool ExclusiveAccessManager::IsSimplifiedFullscreenUIEnabled() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableSimplifiedFullscreenUI)) {
+ return true;
+ }
+
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableSimplifiedFullscreenUI)) {
+ return false;
+ }
+
+ return false;
+}
+
void ExclusiveAccessManager::OnTabDeactivated(WebContents* web_contents) {
fullscreen_controller_.OnTabDeactivated(web_contents);
mouse_lock_controller_.OnTabDeactivated(web_contents);

Powered by Google App Engine
This is Rietveld 408576698