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

Side by Side Diff: ash/accelerators/accelerator_table.h

Issue 155493002: Add key based scrolling on magnified screen for kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 #ifndef ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ 6 #define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 VOLUME_UP, 125 VOLUME_UP,
126 WINDOW_MINIMIZE, 126 WINDOW_MINIMIZE,
127 WINDOW_POSITION_CENTER, 127 WINDOW_POSITION_CENTER,
128 WINDOW_SNAP_LEFT, 128 WINDOW_SNAP_LEFT,
129 WINDOW_SNAP_RIGHT, 129 WINDOW_SNAP_RIGHT,
130 #if defined(OS_CHROMEOS) 130 #if defined(OS_CHROMEOS)
131 ADD_REMOVE_DISPLAY, 131 ADD_REMOVE_DISPLAY,
132 TOGGLE_MIRROR_MODE, 132 TOGGLE_MIRROR_MODE,
133 DISABLE_GPU_WATCHDOG, 133 DISABLE_GPU_WATCHDOG,
134 LOCK_SCREEN, 134 LOCK_SCREEN,
135 MAGNIFY_SCREEN_UP,
136 MAGNIFY_SCREEN_DOWN,
137 MAGNIFY_SCREEN_LEFT,
138 MAGNIFY_SCREEN_RIGHT,
139 MAGNIFY_SCREEN_STOP_SCROLL,
135 OPEN_CROSH, 140 OPEN_CROSH,
136 OPEN_FILE_MANAGER, 141 OPEN_FILE_MANAGER,
137 SWITCH_TO_NEXT_USER, 142 SWITCH_TO_NEXT_USER,
138 SWITCH_TO_PREVIOUS_USER, 143 SWITCH_TO_PREVIOUS_USER,
139 #endif 144 #endif
140 }; 145 };
141 146
142 struct AcceleratorData { 147 struct AcceleratorData {
143 bool trigger_on_press; 148 bool trigger_on_press;
144 ui::KeyboardCode keycode; 149 ui::KeyboardCode keycode;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 ASH_EXPORT extern const size_t kNonrepeatableActionsLength; 195 ASH_EXPORT extern const size_t kNonrepeatableActionsLength;
191 196
192 // Actions allowed in app mode. 197 // Actions allowed in app mode.
193 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInAppMode[]; 198 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInAppMode[];
194 ASH_EXPORT extern const size_t kActionsAllowedInAppModeLength; 199 ASH_EXPORT extern const size_t kActionsAllowedInAppModeLength;
195 200
196 // Actions that require at least 1 window. 201 // Actions that require at least 1 window.
197 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[]; 202 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[];
198 ASH_EXPORT extern const size_t kActionsNeedingWindowLength; 203 ASH_EXPORT extern const size_t kActionsNeedingWindowLength;
199 204
205 #if defined(OS_CHROMEOS)
206 // Accelerators that are enabled only when magnifier is enabled.
207 ASH_EXPORT extern const AcceleratorData kMagnifierAcceleratorData[];
208 ASH_EXPORT extern const size_t kMagnifierAcceleratorDataLength;
209 #endif
210
200 } // namespace ash 211 } // namespace ash
201 212
202 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ 213 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698