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

Side by Side Diff: ash/accelerators/accelerator_controller.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 | « no previous file | ash/accelerators/accelerator_table.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_controller.h" 5 #include "ash/accelerators/accelerator_controller.h"
6 6
7 #include "ash/accelerators/accelerator_table.h" 7 #include "ash/accelerators/accelerator_table.h"
8 #include "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "ash/caps_lock_delegate.h" 10 #include "ash/caps_lock_delegate.h"
11 #include "ash/ime_control_delegate.h" 11 #include "ash/ime_control_delegate.h"
12 #include "ash/launcher/launcher.h" 12 #include "ash/launcher/launcher.h"
13 #include "ash/launcher/launcher_model.h" 13 #include "ash/launcher/launcher_model.h"
14 #include "ash/launcher/launcher_delegate.h" 14 #include "ash/launcher/launcher_delegate.h"
15 #include "ash/monitor/multi_monitor_manager.h"
15 #include "ash/screenshot_delegate.h" 16 #include "ash/screenshot_delegate.h"
16 #include "ash/shell.h" 17 #include "ash/shell.h"
17 #include "ash/shell_delegate.h" 18 #include "ash/shell_delegate.h"
18 #include "ash/shell_window_ids.h" 19 #include "ash/shell_window_ids.h"
19 #include "ash/system/brightness/brightness_control_delegate.h" 20 #include "ash/system/brightness/brightness_control_delegate.h"
20 #include "ash/volume_control_delegate.h" 21 #include "ash/volume_control_delegate.h"
21 #include "ash/wm/window_cycle_controller.h" 22 #include "ash/wm/window_cycle_controller.h"
22 #include "ash/wm/window_util.h" 23 #include "ash/wm/window_util.h"
23 #include "base/command_line.h" 24 #include "base/command_line.h"
24 #include "ui/aura/event.h" 25 #include "ui/aura/event.h"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 case ROTATE_SCREEN: 405 case ROTATE_SCREEN:
405 return HandleRotateScreen(); 406 return HandleRotateScreen();
406 case TOGGLE_DESKTOP_BACKGROUND_MODE: 407 case TOGGLE_DESKTOP_BACKGROUND_MODE:
407 return HandleToggleDesktopBackgroundMode(); 408 return HandleToggleDesktopBackgroundMode();
408 case TOGGLE_ROOT_WINDOW_FULL_SCREEN: 409 case TOGGLE_ROOT_WINDOW_FULL_SCREEN:
409 return HandleToggleRootWindowFullScreen(); 410 return HandleToggleRootWindowFullScreen();
410 case PRINT_LAYER_HIERARCHY: 411 case PRINT_LAYER_HIERARCHY:
411 return HandlePrintLayerHierarchy(); 412 return HandlePrintLayerHierarchy();
412 case PRINT_WINDOW_HIERARCHY: 413 case PRINT_WINDOW_HIERARCHY:
413 return HandlePrintWindowHierarchy(); 414 return HandlePrintWindowHierarchy();
415 case ADD_REMOVE_MONITOR:
416 internal::MultiMonitorManager::AddRemoveMonitor();
417 return true;
418 case CYCLE_MONITOR:
419 internal::MultiMonitorManager::CycleMonitor();
420 return true;
414 #endif 421 #endif
415 default: 422 default:
416 NOTREACHED() << "Unhandled action " << it->second; 423 NOTREACHED() << "Unhandled action " << it->second;
417 } 424 }
418 return false; 425 return false;
419 } 426 }
420 427
421 void AcceleratorController::SwitchToWindow(int window) { 428 void AcceleratorController::SwitchToWindow(int window) {
422 const LauncherItems& items = 429 const LauncherItems& items =
423 Shell::GetInstance()->launcher()->model()->items(); 430 Shell::GetInstance()->launcher()->model()->items();
(...skipping 20 matching lines...) Expand all
444 // Then set this one as active. 451 // Then set this one as active.
445 ActivateLauncherItem(found_index); 452 ActivateLauncherItem(found_index);
446 } 453 }
447 } 454 }
448 455
449 bool AcceleratorController::CanHandleAccelerators() const { 456 bool AcceleratorController::CanHandleAccelerators() const {
450 return true; 457 return true;
451 } 458 }
452 459
453 } // namespace ash 460 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698