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

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

Issue 12389083: cros: Add app mode restrictions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for comments in #3 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 | « ash/accelerators/accelerator_table.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | 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 "ash/accelerators/accelerator_table.h" 5 #include "ash/accelerators/accelerator_table.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 CYCLE_FORWARD_LINEAR, 290 CYCLE_FORWARD_LINEAR,
291 CYCLE_FORWARD_MRU, 291 CYCLE_FORWARD_MRU,
292 ROTATE_WINDOW, 292 ROTATE_WINDOW,
293 TOGGLE_MAXIMIZED, 293 TOGGLE_MAXIMIZED,
294 WINDOW_MINIMIZE, 294 WINDOW_MINIMIZE,
295 }; 295 };
296 296
297 const size_t kNonrepeatableActionsLength = 297 const size_t kNonrepeatableActionsLength =
298 arraysize(kNonrepeatableActions); 298 arraysize(kNonrepeatableActions);
299 299
300 const AcceleratorAction kActionsAllowedInAppMode[] = {
301 BRIGHTNESS_DOWN,
302 BRIGHTNESS_UP,
303 #if defined(OS_CHROMEOS)
304 CYCLE_DISPLAY_MODE,
305 DISABLE_GPU_WATCHDOG,
306 #endif // defined(OS_CHROMEOS)
307 DISABLE_CAPS_LOCK,
308 KEYBOARD_BRIGHTNESS_DOWN,
309 KEYBOARD_BRIGHTNESS_UP,
310 MAGNIFY_SCREEN_ZOOM_IN, // Control+F7
311 MAGNIFY_SCREEN_ZOOM_OUT, // Control+F6
312 MEDIA_NEXT_TRACK,
313 MEDIA_PLAY_PAUSE,
314 MEDIA_PREV_TRACK,
315 NEXT_IME,
316 POWER_PRESSED,
317 POWER_RELEASED,
318 PREVIOUS_IME,
319 SWAP_PRIMARY_DISPLAY,
320 SWITCH_IME, // Switch to another IME depending on the accelerator.
321 TOGGLE_CAPS_LOCK,
322 TOGGLE_SPOKEN_FEEDBACK,
323 TOGGLE_WIFI,
324 TOUCH_HUD_CLEAR,
325 VOLUME_DOWN,
326 VOLUME_MUTE,
327 VOLUME_UP,
328 #if !defined(NDEBUG)
329 PRINT_LAYER_HIERARCHY,
330 PRINT_VIEW_HIERARCHY,
331 PRINT_WINDOW_HIERARCHY,
332 ROTATE_SCREEN,
333 #endif
334 };
335
336 const size_t kActionsAllowedInAppModeLength =
337 arraysize(kActionsAllowedInAppMode);
338
300 } // namespace ash 339 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698