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

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

Issue 12385031: Revert 185378 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 // When set uses the old ActivationController/FocusManager instead of the new
14 // CoreWM FocusController. 14 // CoreWM FocusController.
15 const char kDisableFocusController[] = "disable-focus-controller"; 15 const char kDisableFocusController[] = "disable-focus-controller";
16 16
17 // When set uses the FocusController in desktop mode. 17 // When set uses the FocusController in desktop mode.
18 const char kDisableFocusControllerOnDesktop[] = 18 const char kDisableFocusControllerOnDesktop[] =
19 "disable-focus-controller-on-desktop"; 19 "disable-focus-controller-on-desktop";
20 20
21 const char kNoDropShadows[] = "aura-no-shadows"; 21 const char kNoDropShadows[] = "aura-no-shadows";
22 22
23 // If present animations are disabled. 23 // If present animations are disabled.
24 const char kWindowAnimationsDisabled[] = 24 const char kWindowAnimationsDisabled[] =
25 "views-corewm-window-animations-disabled"; 25 "views-corewm-window-animations-disabled";
26 26
27 } // namespace switches 27 } // namespace switches
28 28
29 bool UseFocusController() { 29 bool UseFocusController() {
30 #if defined(OS_CHROMEOS)
31 return false;
32 #else
33 return !CommandLine::ForCurrentProcess()->HasSwitch( 30 return !CommandLine::ForCurrentProcess()->HasSwitch(
34 switches::kDisableFocusController); 31 switches::kDisableFocusController);
35 #endif
36 } 32 }
37 33
38 bool UseFocusControllerOnDesktop() { 34 bool UseFocusControllerOnDesktop() {
39 return !CommandLine::ForCurrentProcess()->HasSwitch( 35 return !CommandLine::ForCurrentProcess()->HasSwitch(
40 switches::kDisableFocusControllerOnDesktop); 36 switches::kDisableFocusControllerOnDesktop);
41 } 37 }
42 38
43 } // namespace corewm 39 } // namespace corewm
44 } // namespace views 40 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698