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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc

Issue 682943002: Make chrome/browser/chromeos/accessibility compile on Athena with use_ash=0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash41_scroll_end_effect
Patch Set: 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/chromeos/accessibility/accessibility_manager.h" 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
6 6
7 #include "ash/magnifier/magnification_controller.h" 7 #include "ash/magnifier/magnification_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void SetHighContrastEnabled(bool enabled) { 109 void SetHighContrastEnabled(bool enabled) {
110 return AccessibilityManager::Get()->EnableHighContrast(enabled); 110 return AccessibilityManager::Get()->EnableHighContrast(enabled);
111 } 111 }
112 112
113 bool IsHighContrastEnabled() { 113 bool IsHighContrastEnabled() {
114 return AccessibilityManager::Get()->IsHighContrastEnabled(); 114 return AccessibilityManager::Get()->IsHighContrastEnabled();
115 } 115 }
116 116
117 void SetSpokenFeedbackEnabled(bool enabled) { 117 void SetSpokenFeedbackEnabled(bool enabled) {
118 return AccessibilityManager::Get()->EnableSpokenFeedback( 118 return AccessibilityManager::Get()->EnableSpokenFeedback(
119 enabled, ash::A11Y_NOTIFICATION_NONE); 119 enabled, ui::A11Y_NOTIFICATION_NONE);
120 } 120 }
121 121
122 bool IsSpokenFeedbackEnabled() { 122 bool IsSpokenFeedbackEnabled() {
123 return AccessibilityManager::Get()->IsSpokenFeedbackEnabled(); 123 return AccessibilityManager::Get()->IsSpokenFeedbackEnabled();
124 } 124 }
125 125
126 void SetAutoclickEnabled(bool enabled) { 126 void SetAutoclickEnabled(bool enabled) {
127 return AccessibilityManager::Get()->EnableAutoclick(enabled); 127 return AccessibilityManager::Get()->EnableAutoclick(enabled);
128 } 128 }
129 129
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 EXPECT_FALSE(ShouldShowAccessibilityMenu()); 705 EXPECT_FALSE(ShouldShowAccessibilityMenu());
706 706
707 // Check on-screen keyboard. 707 // Check on-screen keyboard.
708 SetVirtualKeyboardEnabled(true); 708 SetVirtualKeyboardEnabled(true);
709 EXPECT_TRUE(ShouldShowAccessibilityMenu()); 709 EXPECT_TRUE(ShouldShowAccessibilityMenu());
710 SetVirtualKeyboardEnabled(false); 710 SetVirtualKeyboardEnabled(false);
711 EXPECT_FALSE(ShouldShowAccessibilityMenu()); 711 EXPECT_FALSE(ShouldShowAccessibilityMenu());
712 } 712 }
713 713
714 } // namespace chromeos 714 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698