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

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

Issue 10829026: Fix display switching for extended displays. (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
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 <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 10
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 return HandleLock(); 417 return HandleLock();
418 case OPEN_FILE_MANAGER_DIALOG: 418 case OPEN_FILE_MANAGER_DIALOG:
419 return HandleFileManager(true /* as_dialog */); 419 return HandleFileManager(true /* as_dialog */);
420 case OPEN_FILE_MANAGER_TAB: 420 case OPEN_FILE_MANAGER_TAB:
421 return HandleFileManager(false /* as_dialog */); 421 return HandleFileManager(false /* as_dialog */);
422 case OPEN_CROSH: 422 case OPEN_CROSH:
423 return HandleCrosh(); 423 return HandleCrosh();
424 case TOGGLE_SPOKEN_FEEDBACK: 424 case TOGGLE_SPOKEN_FEEDBACK:
425 return HandleToggleSpokenFeedback(); 425 return HandleToggleSpokenFeedback();
426 case CYCLE_DISPLAY_MODE: 426 case CYCLE_DISPLAY_MODE:
427 ash::Shell::GetInstance()->output_configurator()->CycleDisplayMode(); 427 ash::Shell::GetInstance()->output_configurator()->CycleDisplayMode(
428 internal::DisplayController::IsExtendedDesktopEnabled());
428 return true; 429 return true;
429 #endif 430 #endif
430 case OPEN_FEEDBACK_PAGE: 431 case OPEN_FEEDBACK_PAGE:
431 ash::Shell::GetInstance()->delegate()->OpenFeedbackPage(); 432 ash::Shell::GetInstance()->delegate()->OpenFeedbackPage();
432 return true; 433 return true;
433 case EXIT: 434 case EXIT:
434 return HandleExit(); 435 return HandleExit();
435 case NEW_INCOGNITO_WINDOW: 436 case NEW_INCOGNITO_WINDOW:
436 return HandleNewWindow(true /* is_incognito */); 437 return HandleNewWindow(true /* is_incognito */);
437 case NEW_TAB: 438 case NEW_TAB:
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 // Then set this one as active. 740 // Then set this one as active.
740 Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index); 741 Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index);
741 } 742 }
742 } 743 }
743 744
744 bool AcceleratorController::CanHandleAccelerators() const { 745 bool AcceleratorController::CanHandleAccelerators() const {
745 return true; 746 return true;
746 } 747 }
747 748
748 } // namespace ash 749 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chromeos/display/output_configurator.h » ('j') | chromeos/display/output_configurator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698