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

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

Issue 9837046: Revert r128507 "Revert r128436 "relanding: disabled workspace_window_resizer test. fixed access-aft… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/ash.gyp » ('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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 TOGGLE_ROOT_WINDOW_FULL_SCREEN }, 97 TOGGLE_ROOT_WINDOW_FULL_SCREEN },
98 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, false, false, true, 98 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, false, false, true,
99 PRINT_LAYER_HIERARCHY }, 99 PRINT_LAYER_HIERARCHY },
100 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, true, false, true, 100 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, true, false, true,
101 PRINT_WINDOW_HIERARCHY }, 101 PRINT_WINDOW_HIERARCHY },
102 // For testing on systems where Alt-Tab is already mapped. 102 // For testing on systems where Alt-Tab is already mapped.
103 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, false, false, true, 103 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, false, false, true,
104 CYCLE_FORWARD_MRU }, 104 CYCLE_FORWARD_MRU },
105 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, true, false, true, 105 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, true, false, true,
106 CYCLE_BACKWARD_MRU }, 106 CYCLE_BACKWARD_MRU },
107 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F4, false, true, false,
108 ADD_REMOVE_MONITOR },
109 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F4, true, true, false,
110 CYCLE_MONITOR },
107 #endif 111 #endif
108 }; 112 };
109 113
110 const size_t kAcceleratorDataLength = arraysize(kAcceleratorData); 114 const size_t kAcceleratorDataLength = arraysize(kAcceleratorData);
111 115
112 const AcceleratorAction kActionsAllowedWhileLocked[] = { 116 const AcceleratorAction kActionsAllowedWhileLocked[] = {
113 BRIGHTNESS_DOWN, 117 BRIGHTNESS_DOWN,
114 BRIGHTNESS_UP, 118 BRIGHTNESS_UP,
115 EXIT, 119 EXIT,
116 NEXT_IME, 120 NEXT_IME,
117 PREVIOUS_IME, 121 PREVIOUS_IME,
118 SWITCH_IME, // Switch to another IME depending on the accelerator. 122 SWITCH_IME, // Switch to another IME depending on the accelerator.
119 TAKE_SCREENSHOT, 123 TAKE_SCREENSHOT,
120 TAKE_PARTIAL_SCREENSHOT, 124 TAKE_PARTIAL_SCREENSHOT,
121 VOLUME_DOWN, 125 VOLUME_DOWN,
122 VOLUME_MUTE, 126 VOLUME_MUTE,
123 VOLUME_UP, 127 VOLUME_UP,
124 ROTATE_WINDOWS, 128 ROTATE_WINDOWS,
125 #if !defined(NDEBUG) 129 #if !defined(NDEBUG)
126 PRINT_LAYER_HIERARCHY, 130 PRINT_LAYER_HIERARCHY,
127 PRINT_WINDOW_HIERARCHY, 131 PRINT_WINDOW_HIERARCHY,
128 ROTATE_SCREEN, 132 ROTATE_SCREEN,
129 #endif 133 #endif
130 }; 134 };
131 135
132 const size_t kActionsAllowedWhileLockedLength = 136 const size_t kActionsAllowedWhileLockedLength =
133 arraysize(kActionsAllowedWhileLocked); 137 arraysize(kActionsAllowedWhileLocked);
134 138
135 } // namespace ash 139 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698