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

Unified Diff: ui/views/corewm/corewm_switches.cc

Issue 11885030: Enable the FocusController on DesktopAura too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « ui/views/corewm/corewm_switches.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/corewm_switches.cc
===================================================================
--- ui/views/corewm/corewm_switches.cc (revision 180150)
+++ ui/views/corewm/corewm_switches.cc (working copy)
@@ -14,6 +14,10 @@
// CoreWM FocusController.
const char kDisableFocusController[] = "disable-focus-controller";
+// When set uses the FocusController in desktop mode.
+const char kEnableFocusControllerOnDesktop[] =
+ "enable-focus-controller-on-desktop";
+
// If present animations are disabled.
const char kWindowAnimationsDisabled[] =
"views-corewm-window-animations-disabled";
@@ -25,5 +29,10 @@
switches::kDisableFocusController);
}
+bool UseFocusControllerOnDesktop() {
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableFocusControllerOnDesktop);
+}
+
} // namespace corewm
} // namespace views
« no previous file with comments | « ui/views/corewm/corewm_switches.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698