1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
ash / system / input_device_settings / input_device_settings_pref_names.h [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_INPUT_DEVICE_SETTINGS_INPUT_DEVICE_SETTINGS_PREF_NAMES_H_
#define ASH_SYSTEM_INPUT_DEVICE_SETTINGS_INPUT_DEVICE_SETTINGS_PREF_NAMES_H_
namespace ash::prefs {
// Prefs which contain lists of observed devices for a few milestones before
// per-device settings are enabled.
inline constexpr char kKeyboardObservedDevicesPref[] =
"settings.keyboard.observed_devices";
inline constexpr char kMouseObservedDevicesPref[] =
"settings.mouse.observed_devices";
inline constexpr char kPointingStickObservedDevicesPref[] =
"settings.pointing_stick.observed_devices";
inline constexpr char kTouchpadObservedDevicesPref[] =
"settings.touchpad.observed_devices";
// Prefs which contain login screen settings for connected internal devices.
inline constexpr char kKeyboardLoginScreenInternalSettingsPref[] =
"settings.keyboard.internal";
inline constexpr char kMouseLoginScreenInternalSettingsPref[] =
"settings.mouse.internal";
inline constexpr char kPointingStickLoginScreenInternalSettingsPref[] =
"settings.pointing_stick.internal";
inline constexpr char kTouchpadLoginScreenInternalSettingsPref[] =
"settings.touchpad.internal";
// Prefs which contain seen peripheral devices for notification use.
inline constexpr char kPeripheralNotificationMiceSeen[] =
"settings.mouse.peripheral_notification_seen";
inline constexpr char kPeripheralNotificationGraphicsTabletsSeen[] =
"settings.graphics_tablet.peripheral_notification_seen";
// Prefs which contain peripheral devices that have seen the enhanced
// "Welcome Experience" notification.
inline constexpr char kWelcomeExperienceNotificationSeen[] =
"settings.device.welcome_experience_notification_seen";
// Prefs which contain login screen settings for connected external devices.
inline constexpr char kKeyboardLoginScreenExternalSettingsPref[] =
"settings.keyboard.external";
inline constexpr char kMouseLoginScreenExternalSettingsPref[] =
"settings.mouse.external";
inline constexpr char kPointingStickLoginScreenExternalSettingsPref[] =
"settings.pointing_stick.external";
inline constexpr char kTouchpadLoginScreenExternalSettingsPref[] =
"settings.touchpad.external";
// Prefs which contain login screen button remapping list for connected graphics
// tablet devices.
inline constexpr char
kGraphicsTabletLoginScreenTabletButtonRemappingListPref[] =
"settings.graphics_tablet.tablet_button_remappings";
inline constexpr char kGraphicsTabletLoginScreenPenButtonRemappingListPref[] =
"settings.graphics_tablet.pen_button_remappings";
// Prefs which contain login screen button remapping list for connected external
// mice devices.
inline constexpr char kMouseLoginScreenButtonRemappingListPref[] =
"settings.mouse.external.button_remappings";
// Prefs which contain dictionaries of settings for each connected device.
inline constexpr char kKeyboardDeviceSettingsDictPref[] =
"settings.keyboard.devices";
inline constexpr char kMouseDeviceSettingsDictPref[] = "settings.mouse.devices";
inline constexpr char kPointingStickDeviceSettingsDictPref[] =
"settings.pointing_stick.devices";
inline constexpr char kTouchpadDeviceSettingsDictPref[] =
"settings.touchpad.devices";
// Dictionary pref containing the internal keyboard's settings.
inline constexpr char kKeyboardInternalSettings[] =
"settings.keyboard.internal";
// Pref which contains a list of previously seen imposter keyboards that we know
// to be valid (ie false positives).
inline constexpr char kKeyboardDeviceImpostersListPref[] =
"settings.keyboard.imposter_false_positives";
// Pref which contains a list of previously seen imposter mice that we know to
// be valid (ie false positives).
inline constexpr char kMouseDeviceImpostersListPref[] =
"settings.mouse.imposter_false_positives";
// Prefs which contain dictionaries of button remappings for each connected
// device.
inline constexpr char kGraphicsTabletTabletButtonRemappingsDictPref[] =
"settings.graphics_tablet.tablet_button_remappings";
inline constexpr char kGraphicsTabletPenButtonRemappingsDictPref[] =
"settings.graphics_tablet.pen_button_remappings";
inline constexpr char kMouseButtonRemappingsDictPref[] =
"settings.mouse.button_remappings";
// Keyboard settings dictionary keys.
inline constexpr char kKeyboardSettingAutoRepeatDelay[] = "auto_repeat_delay";
inline constexpr char kKeyboardSettingAutoRepeatEnabled[] =
"auto_repeat_enabled";
inline constexpr char kKeyboardSettingAutoRepeatInterval[] =
"auto_repeat_interval";
inline constexpr char kKeyboardSettingModifierRemappings[] =
"modifier_remappings";
inline constexpr char kKeyboardSettingSuppressMetaFKeyRewrites[] =
"suppress_meta_fkey_rewrites";
inline constexpr char kKeyboardSettingTopRowAreFKeys[] = "top_row_are_fkeys";
inline constexpr char kKeyboardSettingSixPackKeyRemappings[] =
"six_pack_key_remappings";
inline constexpr char kSixPackKeyPageUp[] = "page_up";
inline constexpr char kSixPackKeyPageDown[] = "page_down";
inline constexpr char kSixPackKeyHome[] = "home";
inline constexpr char kSixPackKeyEnd[] = "end";
inline constexpr char kSixPackKeyDelete[] = "delete";
inline constexpr char kSixPackKeyInsert[] = "insert";
inline constexpr char kKeyboardSettingF11[] = "f11";
inline constexpr char kKeyboardSettingF12[] = "f12";
inline constexpr char kKeyboardUpdateSettingsMetricInfo[] =
"settings.keyboard.update_settings_info";
inline constexpr char kMouseUpdateSettingsMetricInfo[] =
"settings.mouse.update_settings_info";
inline constexpr char kTouchpadUpdateSettingsMetricInfo[] =
"settings.touchpad.update_settings_info";
inline constexpr char kPointingStickUpdateSettingsMetricInfo[] =
"settings.pointing_stick.update_settings_info";
inline constexpr char kTopRowRemappingNudgeShownCount[] =
"settings.keyboard.top_row_key_remapping_nudge_shown_count";
inline constexpr char kPageUpRemappingNudgeShownCount[] =
"settings.keyboard.page_up_key_remapping_nudge_shown_count";
inline constexpr char kPageDownRemappingNudgeShownCount[] =
"settings.keyboard.page_down_key_remapping_nudge_shown_count";
inline constexpr char kHomeRemappingNudgeShownCount[] =
"settings.keyboard.home_key_remapping_nudge_shown_count";
inline constexpr char kEndRemappingNudgeShownCount[] =
"settings.keyboard.end_key_remapping_nudge_shown_count";
inline constexpr char kDeleteRemappingNudgeShownCount[] =
"settings.keyboard.delete_key_remapping_nudge_shown_count";
inline constexpr char kInsertRemappingNudgeShownCount[] =
"settings.keyboard.insert_key_remapping_nudge_shown_count";
inline constexpr char kCapsLockRemappingNudgeShownCount[] =
"settings.keyboard.caps_lock_remapping_nudge_shown_count";
inline constexpr char kTopRowRemappingNudgeLastShown[] =
"settings.keyboard.top_row_key_remapping_nudge_last_shown";
inline constexpr char kPageUpRemappingNudgeLastShown[] =
"settings.keyboard.page_up_key_remapping_nudge_last_shown";
inline constexpr char kPageDownRemappingNudgeLastShown[] =
"settings.keyboard.page_down_key_remapping_nudge_last_shown";
inline constexpr char kHomeRemappingNudgeLastShown[] =
"settings.keyboard.home_key_remapping_nudge_last_shown";
inline constexpr char kEndRemappingNudgeLastShown[] =
"settings.keyboard.end_key_remapping_nudge_last_shown";
inline constexpr char kDeleteRemappingNudgeLastShown[] =
"settings.keyboard.delete_key_remapping_nudge_last_shown";
inline constexpr char kInsertRemappingNudgeLastShown[] =
"settings.keyboard.insert_key_remapping_nudge_last_shown";
inline constexpr char kCapsLockRemappingNudgeLastShown[] =
"settings.keyboard.caps_lock_remapping_nudge_last_shown";
// Mouse settings dictionary keys.
inline constexpr char kMouseSettingSwapRight[] = "swap_right";
inline constexpr char kMouseSettingSensitivity[] = "sensitivity";
inline constexpr char kMouseSettingReverseScrolling[] = "reverse_scrolling";
inline constexpr char kMouseSettingAccelerationEnabled[] =
"acceleration_enabled";
inline constexpr char kMouseSettingScrollSensitivity[] = "scroll_sensitivity";
inline constexpr char kMouseSettingScrollAcceleration[] = "scroll_acceleration";
// Touchpad settings dictionary keys.
inline constexpr char kTouchpadSettingSensitivity[] = "sensitivity";
inline constexpr char kTouchpadSettingReverseScrolling[] = "reverse_scrolling";
inline constexpr char kTouchpadSettingAccelerationEnabled[] =
"acceleration_enabled";
inline constexpr char kTouchpadSettingScrollSensitivity[] =
"scroll_sensitivity";
inline constexpr char kTouchpadSettingScrollAcceleration[] =
"scroll_acceleration";
inline constexpr char kTouchpadSettingTapToClickEnabled[] =
"tap_to_click_enabled";
inline constexpr char kTouchpadSettingThreeFingerClickEnabled[] =
"three_finger_click_enabled";
inline constexpr char kTouchpadSettingTapDraggingEnabled[] =
"tap_dragging_enabled";
inline constexpr char kTouchpadSettingHapticSensitivity[] =
"haptic_sensitivity";
inline constexpr char kTouchpadSettingHapticEnabled[] = "haptic_enabled";
inline constexpr char kTouchpadSettingSimulateRightClick[] =
"simulate_right_click";
// Pointing stick settings dictionary keys.
inline constexpr char kPointingStickSettingSensitivity[] = "sensitivity";
inline constexpr char kPointingStickSettingSwapRight[] = "swap_right";
inline constexpr char kPointingStickSettingAcceleration[] = "acceleration";
// Button Remapping dictionary keys.
inline constexpr char kButtonRemappings[] = "button_remappings";
inline constexpr char kButtonRemappingName[] = "name";
inline constexpr char kButtonRemappingCustomizableButton[] =
"customizable_button";
inline constexpr char kButtonRemappingKeyboardCode[] = "vkey";
inline constexpr char kButtonRemappingAcceleratorAction[] =
"accelerator_action";
inline constexpr char kButtonRemappingKeyEvent[] = "key_event";
inline constexpr char kButtonRemappingDomCode[] = "dom_code";
inline constexpr char kButtonRemappingDomKey[] = "dom_key";
inline constexpr char kButtonRemappingModifiers[] = "modifiers";
inline constexpr char kButtonRemappingStaticShortcutAction[] =
"static_shortcut_action";
// Last updated dictionary keys.
inline constexpr char kLastUpdatedKey[] = "last_updated";
// Preference key used to access a dictionary that maps device identifiers
// to their corresponding image URLs.
inline constexpr char kDeviceImagesDictPref[] = "settings.devices.images";
} // namespace ash::prefs
#endif // ASH_SYSTEM_INPUT_DEVICE_SETTINGS_INPUT_DEVICE_SETTINGS_PREF_NAMES_H_