OLD | NEW |
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 <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "ash/accelerators/accelerator_table.h" | 9 #include "ash/accelerators/accelerator_table.h" |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 case OPEN_FILE_MANAGER_TAB: | 392 case OPEN_FILE_MANAGER_TAB: |
393 return HandleFileManager(false /* as_dialog */); | 393 return HandleFileManager(false /* as_dialog */); |
394 case OPEN_CROSH: | 394 case OPEN_CROSH: |
395 return HandleCrosh(); | 395 return HandleCrosh(); |
396 case TOGGLE_SPOKEN_FEEDBACK: | 396 case TOGGLE_SPOKEN_FEEDBACK: |
397 return HandleToggleSpokenFeedback(); | 397 return HandleToggleSpokenFeedback(); |
398 case CYCLE_DISPLAY_MODE: | 398 case CYCLE_DISPLAY_MODE: |
399 ash::Shell::GetInstance()->output_configurator()->CycleDisplayMode(); | 399 ash::Shell::GetInstance()->output_configurator()->CycleDisplayMode(); |
400 return true; | 400 return true; |
401 #endif | 401 #endif |
| 402 case OPEN_FEEDBACK_PAGE: |
| 403 ash::Shell::GetInstance()->delegate()->OpenFeedbackPage(); |
| 404 return true; |
402 case EXIT: | 405 case EXIT: |
403 return HandleExit(); | 406 return HandleExit(); |
404 case NEW_INCOGNITO_WINDOW: | 407 case NEW_INCOGNITO_WINDOW: |
405 return HandleNewWindow(true /* is_incognito */); | 408 return HandleNewWindow(true /* is_incognito */); |
406 case NEW_TAB: | 409 case NEW_TAB: |
407 return HandleNewTab(); | 410 return HandleNewTab(); |
408 case NEW_WINDOW: | 411 case NEW_WINDOW: |
409 return HandleNewWindow(false /* is_incognito */); | 412 return HandleNewWindow(false /* is_incognito */); |
410 case RESTORE_TAB: | 413 case RESTORE_TAB: |
411 return HandleRestoreTab(); | 414 return HandleRestoreTab(); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 // Then set this one as active. | 679 // Then set this one as active. |
677 Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index); | 680 Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index); |
678 } | 681 } |
679 } | 682 } |
680 | 683 |
681 bool AcceleratorController::CanHandleAccelerators() const { | 684 bool AcceleratorController::CanHandleAccelerators() const { |
682 return true; | 685 return true; |
683 } | 686 } |
684 | 687 |
685 } // namespace ash | 688 } // namespace ash |
OLD | NEW |