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

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

Issue 10698115: Support "Report Issue" in case of no-browser windows in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 <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
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
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
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