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 3 // found in the LICENSE file. 4 5 #include "ui/views/corewm/corewm_switches.h" 6 7 #include "base/command_line.h" 8 9 namespace views { 10 namespace corewm { 11 namespace switches { 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"; 22 23 // If present animations are disabled. 24 const char kWindowAnimationsDisabled[] = 25 "views-corewm-window-animations-disabled"; 26 27 } // 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 40 } // namespace views 41