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

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

Issue 18163006: Add persisted preference for projection touch HUD (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/root_window_controller.cc » ('j') | chrome/browser/chromeos/preferences.cc » ('J')
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 <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <iostream> 9 #include <iostream>
10 #include <string> 10 #include <string>
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 } 569 }
570 case TOUCH_HUD_MODE_CHANGE: { 570 case TOUCH_HUD_MODE_CHANGE: {
571 internal::RootWindowController* controller = 571 internal::RootWindowController* controller =
572 internal::RootWindowController::ForActiveRootWindow(); 572 internal::RootWindowController::ForActiveRootWindow();
573 if (controller->touch_hud_debug()) { 573 if (controller->touch_hud_debug()) {
574 controller->touch_hud_debug()->ChangeToNextMode(); 574 controller->touch_hud_debug()->ChangeToNextMode();
575 return true; 575 return true;
576 } 576 }
577 return false; 577 return false;
578 } 578 }
579 case TOUCH_HUD_PROJECTION_TOGGLE: { 579 case TOUCH_HUD_PROJECTION_TOGGLE:
580 bool enabled = Shell::GetInstance()->is_touch_hud_projection_enabled(); 580 Shell::GetInstance()->delegate()->ToggleTouchHudProjection();
581 Shell::GetInstance()->SetTouchHudProjectionEnabled(!enabled);
582 return true; 581 return true;
583 }
584 case DISABLE_GPU_WATCHDOG: 582 case DISABLE_GPU_WATCHDOG:
585 content::GpuDataManager::GetInstance()->DisableGpuWatchdog(); 583 content::GpuDataManager::GetInstance()->DisableGpuWatchdog();
586 return true; 584 return true;
587 #endif 585 #endif
588 case OPEN_FEEDBACK_PAGE: 586 case OPEN_FEEDBACK_PAGE:
589 ash::Shell::GetInstance()->delegate()->OpenFeedbackPage(); 587 ash::Shell::GetInstance()->delegate()->OpenFeedbackPage();
590 return true; 588 return true;
591 case EXIT: 589 case EXIT:
592 // UMA metrics are recorded in the handler. 590 // UMA metrics are recorded in the handler.
593 exit_warning_handler_.HandleAccelerator(); 591 exit_warning_handler_.HandleAccelerator();
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 keyboard_brightness_control_delegate) { 966 keyboard_brightness_control_delegate) {
969 keyboard_brightness_control_delegate_ = 967 keyboard_brightness_control_delegate_ =
970 keyboard_brightness_control_delegate.Pass(); 968 keyboard_brightness_control_delegate.Pass();
971 } 969 }
972 970
973 bool AcceleratorController::CanHandleAccelerators() const { 971 bool AcceleratorController::CanHandleAccelerators() const {
974 return true; 972 return true;
975 } 973 }
976 974
977 } // namespace ash 975 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | chrome/browser/chromeos/preferences.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698