| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 case OPEN_FILE_MANAGER_TAB: | 393 case OPEN_FILE_MANAGER_TAB: |
| 394 return HandleFileManager(false /* as_dialog */); | 394 return HandleFileManager(false /* as_dialog */); |
| 395 case OPEN_CROSH: | 395 case OPEN_CROSH: |
| 396 return HandleCrosh(); | 396 return HandleCrosh(); |
| 397 case TOGGLE_SPOKEN_FEEDBACK: | 397 case TOGGLE_SPOKEN_FEEDBACK: |
| 398 return HandleToggleSpokenFeedback(); | 398 return HandleToggleSpokenFeedback(); |
| 399 case CYCLE_DISPLAY_MODE: | 399 case CYCLE_DISPLAY_MODE: |
| 400 ash::Shell::GetInstance()->output_configurator()->CycleDisplayMode(); | 400 ash::Shell::GetInstance()->output_configurator()->CycleDisplayMode(); |
| 401 return true; | 401 return true; |
| 402 #endif | 402 #endif |
| 403 case OPEN_FEEDBACK_PAGE: |
| 404 ash::Shell::GetInstance()->delegate()->OpenFeedbackPage(); |
| 405 return true; |
| 403 case EXIT: | 406 case EXIT: |
| 404 return HandleExit(); | 407 return HandleExit(); |
| 405 case NEW_INCOGNITO_WINDOW: | 408 case NEW_INCOGNITO_WINDOW: |
| 406 return HandleNewWindow(true /* is_incognito */); | 409 return HandleNewWindow(true /* is_incognito */); |
| 407 case NEW_TAB: | 410 case NEW_TAB: |
| 408 return HandleNewTab(); | 411 return HandleNewTab(); |
| 409 case NEW_WINDOW: | 412 case NEW_WINDOW: |
| 410 return HandleNewWindow(false /* is_incognito */); | 413 return HandleNewWindow(false /* is_incognito */); |
| 411 case RESTORE_TAB: | 414 case RESTORE_TAB: |
| 412 return HandleRestoreTab(); | 415 return HandleRestoreTab(); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 // Then set this one as active. | 698 // Then set this one as active. |
| 696 Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index); | 699 Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index); |
| 697 } | 700 } |
| 698 } | 701 } |
| 699 | 702 |
| 700 bool AcceleratorController::CanHandleAccelerators() const { | 703 bool AcceleratorController::CanHandleAccelerators() const { |
| 701 return true; | 704 return true; |
| 702 } | 705 } |
| 703 | 706 |
| 704 } // namespace ash | 707 } // namespace ash |
| OLD | NEW |