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

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

Issue 594383002: Change behaviour of the Alt-] and Alt-[ keys so that it cycles through SnapLeft/SnapRight to DockLe… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event
Patch Set: Fix comment Created 6 years, 2 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
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/wm/default_state.cc » ('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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 { true, ui::VKEY_2, ui::EF_ALT_DOWN, LAUNCH_APP_1 }, 137 { true, ui::VKEY_2, ui::EF_ALT_DOWN, LAUNCH_APP_1 },
138 { true, ui::VKEY_3, ui::EF_ALT_DOWN, LAUNCH_APP_2 }, 138 { true, ui::VKEY_3, ui::EF_ALT_DOWN, LAUNCH_APP_2 },
139 { true, ui::VKEY_4, ui::EF_ALT_DOWN, LAUNCH_APP_3 }, 139 { true, ui::VKEY_4, ui::EF_ALT_DOWN, LAUNCH_APP_3 },
140 { true, ui::VKEY_5, ui::EF_ALT_DOWN, LAUNCH_APP_4 }, 140 { true, ui::VKEY_5, ui::EF_ALT_DOWN, LAUNCH_APP_4 },
141 { true, ui::VKEY_6, ui::EF_ALT_DOWN, LAUNCH_APP_5 }, 141 { true, ui::VKEY_6, ui::EF_ALT_DOWN, LAUNCH_APP_5 },
142 { true, ui::VKEY_7, ui::EF_ALT_DOWN, LAUNCH_APP_6 }, 142 { true, ui::VKEY_7, ui::EF_ALT_DOWN, LAUNCH_APP_6 },
143 { true, ui::VKEY_8, ui::EF_ALT_DOWN, LAUNCH_APP_7 }, 143 { true, ui::VKEY_8, ui::EF_ALT_DOWN, LAUNCH_APP_7 },
144 { true, ui::VKEY_9, ui::EF_ALT_DOWN, LAUNCH_LAST_APP }, 144 { true, ui::VKEY_9, ui::EF_ALT_DOWN, LAUNCH_LAST_APP },
145 145
146 // Window management shortcuts. 146 // Window management shortcuts.
147 { true, ui::VKEY_OEM_4, ui::EF_ALT_DOWN, WINDOW_SNAP_LEFT }, 147 { true, ui::VKEY_OEM_4, ui::EF_ALT_DOWN, WINDOW_CYCLE_SNAP_DOCK_LEFT },
148 { true, ui::VKEY_OEM_6, ui::EF_ALT_DOWN, WINDOW_SNAP_RIGHT }, 148 { true, ui::VKEY_OEM_6, ui::EF_ALT_DOWN, WINDOW_CYCLE_SNAP_DOCK_RIGHT },
149 { true, ui::VKEY_OEM_MINUS, ui::EF_ALT_DOWN, WINDOW_MINIMIZE }, 149 { true, ui::VKEY_OEM_MINUS, ui::EF_ALT_DOWN, WINDOW_MINIMIZE },
150 { true, ui::VKEY_OEM_PLUS, ui::EF_ALT_DOWN, TOGGLE_MAXIMIZED }, 150 { true, ui::VKEY_OEM_PLUS, ui::EF_ALT_DOWN, TOGGLE_MAXIMIZED },
151 { true, ui::VKEY_OEM_PLUS, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, 151 { true, ui::VKEY_OEM_PLUS, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN,
152 WINDOW_POSITION_CENTER }, 152 WINDOW_POSITION_CENTER },
153 { true, ui::VKEY_BROWSER_FORWARD, ui::EF_CONTROL_DOWN, FOCUS_NEXT_PANE }, 153 { true, ui::VKEY_BROWSER_FORWARD, ui::EF_CONTROL_DOWN, FOCUS_NEXT_PANE },
154 { true, ui::VKEY_BROWSER_BACK, ui::EF_CONTROL_DOWN, FOCUS_PREVIOUS_PANE }, 154 { true, ui::VKEY_BROWSER_BACK, ui::EF_CONTROL_DOWN, FOCUS_PREVIOUS_PANE },
155 155
156 // Media Player shortcuts. 156 // Media Player shortcuts.
157 { true, ui::VKEY_MEDIA_NEXT_TRACK, ui::EF_NONE, MEDIA_NEXT_TRACK}, 157 { true, ui::VKEY_MEDIA_NEXT_TRACK, ui::EF_NONE, MEDIA_NEXT_TRACK},
158 { true, ui::VKEY_MEDIA_PLAY_PAUSE, ui::EF_NONE, MEDIA_PLAY_PAUSE}, 158 { true, ui::VKEY_MEDIA_PLAY_PAUSE, ui::EF_NONE, MEDIA_PLAY_PAUSE},
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 416
417 const size_t kActionsAllowedInAppModeLength = 417 const size_t kActionsAllowedInAppModeLength =
418 arraysize(kActionsAllowedInAppMode); 418 arraysize(kActionsAllowedInAppMode);
419 419
420 const AcceleratorAction kActionsNeedingWindow[] = { 420 const AcceleratorAction kActionsNeedingWindow[] = {
421 ACCESSIBLE_FOCUS_NEXT, 421 ACCESSIBLE_FOCUS_NEXT,
422 ACCESSIBLE_FOCUS_PREVIOUS, 422 ACCESSIBLE_FOCUS_PREVIOUS,
423 CYCLE_BACKWARD_MRU, 423 CYCLE_BACKWARD_MRU,
424 CYCLE_FORWARD_MRU, 424 CYCLE_FORWARD_MRU,
425 TOGGLE_OVERVIEW, 425 TOGGLE_OVERVIEW,
426 WINDOW_SNAP_LEFT, 426 WINDOW_CYCLE_SNAP_DOCK_LEFT,
427 WINDOW_SNAP_RIGHT, 427 WINDOW_CYCLE_SNAP_DOCK_RIGHT,
428 WINDOW_MINIMIZE, 428 WINDOW_MINIMIZE,
429 TOGGLE_FULLSCREEN, 429 TOGGLE_FULLSCREEN,
430 TOGGLE_MAXIMIZED, 430 TOGGLE_MAXIMIZED,
431 WINDOW_POSITION_CENTER, 431 WINDOW_POSITION_CENTER,
432 ROTATE_WINDOW, 432 ROTATE_WINDOW,
433 }; 433 };
434 434
435 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow); 435 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow);
436 436
437 } // namespace ash 437 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/wm/default_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698