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

Side by Side Diff: ui/views/corewm/corewm_switches.cc

Issue 23874013: Remove old activation code and disable-focus-controller flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/corewm/corewm_switches.h" 5 #include "ui/views/corewm/corewm_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace views { 9 namespace views {
10 namespace corewm { 10 namespace corewm {
11 namespace switches { 11 namespace switches {
12 12
13 // When set uses the old ActivationController/FocusManager instead of the new
14 // CoreWM FocusController.
15 const char kDisableFocusController[] = "disable-focus-controller";
16
17 // When set uses the FocusController in desktop mode.
18 const char kDisableFocusControllerOnDesktop[] =
19 "disable-focus-controller-on-desktop";
20
21 const char kNoDropShadows[] = "aura-no-shadows"; 13 const char kNoDropShadows[] = "aura-no-shadows";
22 14
23 // If present animations are disabled. 15 // If present animations are disabled.
24 const char kWindowAnimationsDisabled[] = 16 const char kWindowAnimationsDisabled[] =
25 "views-corewm-window-animations-disabled"; 17 "views-corewm-window-animations-disabled";
26 18
27 } // namespace switches 19 } // namespace switches
28
29 bool UseFocusController() {
30 return !CommandLine::ForCurrentProcess()->HasSwitch(
31 switches::kDisableFocusController);
32 }
33
34 bool UseFocusControllerOnDesktop() {
35 return !CommandLine::ForCurrentProcess()->HasSwitch(
36 switches::kDisableFocusControllerOnDesktop);
37 }
38
39 } // namespace corewm 20 } // namespace corewm
40 } // namespace views 21 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698