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

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

Issue 684783004: Prefix CommandLine usage with base namespace (Part 4: ash/) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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
« no previous file with comments | « no previous file | ash/accelerators/debug_commands.cc » ('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 <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 10
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 bool HandleToggleSpokenFeedback() { 572 bool HandleToggleSpokenFeedback() {
573 base::RecordAction(UserMetricsAction("Accel_Toggle_Spoken_Feedback")); 573 base::RecordAction(UserMetricsAction("Accel_Toggle_Spoken_Feedback"));
574 574
575 Shell::GetInstance()->accessibility_delegate()-> 575 Shell::GetInstance()->accessibility_delegate()->
576 ToggleSpokenFeedback(A11Y_NOTIFICATION_SHOW); 576 ToggleSpokenFeedback(A11Y_NOTIFICATION_SHOW);
577 return true; 577 return true;
578 } 578 }
579 579
580 bool HandleToggleTouchViewTesting() { 580 bool HandleToggleTouchViewTesting() {
581 // TODO(skuhne): This is only temporary! Remove this! 581 // TODO(skuhne): This is only temporary! Remove this!
582 if (CommandLine::ForCurrentProcess()->HasSwitch( 582 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
583 switches::kAshEnableTouchViewTesting)) { 583 switches::kAshEnableTouchViewTesting)) {
584 MaximizeModeController* controller = Shell::GetInstance()-> 584 MaximizeModeController* controller = Shell::GetInstance()->
585 maximize_mode_controller(); 585 maximize_mode_controller();
586 controller->EnableMaximizeModeWindowManager( 586 controller->EnableMaximizeModeWindowManager(
587 !controller->IsMaximizeModeWindowManagerEnabled()); 587 !controller->IsMaximizeModeWindowManagerEnabled());
588 return true; 588 return true;
589 } 589 }
590 return false; 590 return false;
591 } 591 }
592 592
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 keyboard_brightness_control_delegate) { 1109 keyboard_brightness_control_delegate) {
1110 keyboard_brightness_control_delegate_ = 1110 keyboard_brightness_control_delegate_ =
1111 keyboard_brightness_control_delegate.Pass(); 1111 keyboard_brightness_control_delegate.Pass();
1112 } 1112 }
1113 1113
1114 bool AcceleratorController::CanHandleAccelerators() const { 1114 bool AcceleratorController::CanHandleAccelerators() const {
1115 return true; 1115 return true;
1116 } 1116 }
1117 1117
1118 } // namespace ash 1118 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/debug_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698