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 #ifndef ASH_PUBLIC_CPP_ASH_CONSTANTS_H_ 6 #define ASH_PUBLIC_CPP_ASH_CONSTANTS_H_ 7 8 #include "ash/public/cpp/accessibility_controller_enums.h" 9 #include "base/time/time.h" 10 #include "third_party/skia/include/core/SkColor.h" 11 #include "ui/gfx/color_palette.h" 12 13 typedef unsigned int SkColor; 14 15 namespace ash { 16 17 // Background color used for the Chrome OS boot splash screen. 18 constexpr SkColor kChromeOsBootColor = SkColorSetRGB(0xfe, 0xfe, 0xfe); 19 20 // The border thickness of keyboard focus for launcher items and system tray. 21 constexpr int kFocusBorderThickness = 2; 22 23 constexpr int kDefaultLargeCursorSize = 64; 24 25 constexpr SkColor kDefaultCursorColor = SK_ColorBLACK; 26 27 // The option in the Switch Access settings for no switch assigned. 28 constexpr int kSwitchAccessAssignmentNone = 0; 29 30 // The default delay before Switch Access automatically moves to the next 31 // element on the page that is interesting, based on the Switch Access 32 // predicates. 33 constexpr base::TimeDelta kDefaultSwitchAccessAutoScanSpeed = 34 base::TimeDelta::FromMilliseconds(1200); 35 36 // The default wait time between last mouse movement and sending autoclick. 37 constexpr int kDefaultAutoclickDelayMs = 1000; 38 39 constexpr AutoclickEventType kDefaultAutoclickEventType = 40 AutoclickEventType::kLeftClick; 41 42 // The default threshold of mouse movement, measured in DIP, that will initiate 43 // a new autoclick. 44 constexpr int kDefaultAutoclickMovementThreshold = 20; 45 46 // The default automatic click menu position. 47 constexpr FloatingMenuPosition kDefaultAutoclickMenuPosition = 48 FloatingMenuPosition::kSystemDefault; 49 50 // The default floating accessibility menu position. 51 constexpr FloatingMenuPosition kDefaultFloatingMenuPosition = 52 FloatingMenuPosition::kSystemDefault; 53 54 // Whether keyboard auto repeat is enabled by default. 55 constexpr bool kDefaultKeyAutoRepeatEnabled = true; 56 57 // Whether dark mode is enabled by default. 58 constexpr bool kDefaultDarkModeEnabled = true; 59 60 // Whether color mode is themed by default. 61 constexpr bool kDefaultColorModeThemed = true; 62 63 // The default delay before a held keypress will start to auto repeat. 64 constexpr base::TimeDelta kDefaultKeyAutoRepeatDelay = 65 base::TimeDelta::FromMilliseconds(500); 66 67 // The default interval between auto-repeated key events. 68 constexpr base::TimeDelta kDefaultKeyAutoRepeatInterval = 69 base::TimeDelta::FromMilliseconds(50); 70 71 } // namespace ash 72 73 #endif // ASH_PUBLIC_CPP_ASH_CONSTANTS_H_ 74