OLD | NEW |
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/test/test_shell_delegate.h" | 5 #include "ash/test/test_shell_delegate.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "ash/caps_lock_delegate_stub.h" | 9 #include "ash/caps_lock_delegate_stub.h" |
10 #include "ash/host/root_window_host_factory.h" | 10 #include "ash/host/root_window_host_factory.h" |
11 #include "ash/session_state_delegate.h" | 11 #include "ash/session_state_delegate.h" |
12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
13 #include "ash/shell_window_ids.h" | 13 #include "ash/shell_window_ids.h" |
14 #include "ash/test/test_launcher_delegate.h" | 14 #include "ash/test/test_launcher_delegate.h" |
15 #include "ash/test/test_session_state_delegate.h" | 15 #include "ash/test/test_session_state_delegate.h" |
16 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "content/public/test/test_browser_context.h" | 18 #include "content/public/test/test_browser_context.h" |
19 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
20 | 20 |
21 namespace ash { | 21 namespace ash { |
22 namespace test { | 22 namespace test { |
23 | 23 |
24 TestShellDelegate::TestShellDelegate() | 24 TestShellDelegate::TestShellDelegate() |
25 : spoken_feedback_enabled_(false), | 25 : spoken_feedback_enabled_(false), |
26 high_contrast_enabled_(false), | 26 high_contrast_enabled_(false), |
27 screen_magnifier_enabled_(false), | 27 screen_magnifier_enabled_(false), |
28 screen_magnifier_type_(kDefaultMagnifierType), | 28 screen_magnifier_type_(kDefaultMagnifierType), |
| 29 large_cursor_enabled_(false), |
29 num_exit_requests_(0), | 30 num_exit_requests_(0), |
30 multi_profiles_enabled_(false), | 31 multi_profiles_enabled_(false), |
31 test_session_state_delegate_(NULL) { | 32 test_session_state_delegate_(NULL) { |
32 } | 33 } |
33 | 34 |
34 TestShellDelegate::~TestShellDelegate() { | 35 TestShellDelegate::~TestShellDelegate() { |
35 } | 36 } |
36 | 37 |
37 bool TestShellDelegate::IsFirstRunAfterBoot() const { | 38 bool TestShellDelegate::IsFirstRunAfterBoot() const { |
38 return false; | 39 return false; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 123 } |
123 | 124 |
124 bool TestShellDelegate::IsMagnifierEnabled() const { | 125 bool TestShellDelegate::IsMagnifierEnabled() const { |
125 return screen_magnifier_enabled_; | 126 return screen_magnifier_enabled_; |
126 } | 127 } |
127 | 128 |
128 MagnifierType TestShellDelegate::GetMagnifierType() const { | 129 MagnifierType TestShellDelegate::GetMagnifierType() const { |
129 return screen_magnifier_type_; | 130 return screen_magnifier_type_; |
130 } | 131 } |
131 | 132 |
| 133 void TestShellDelegate::SetLargeCursorEnabled(bool enabled) { |
| 134 large_cursor_enabled_ = enabled; |
| 135 } |
| 136 |
| 137 bool TestShellDelegate::IsLargeCursorEnabled() const { |
| 138 return large_cursor_enabled_; |
| 139 } |
| 140 |
132 bool TestShellDelegate::ShouldAlwaysShowAccessibilityMenu() const { | 141 bool TestShellDelegate::ShouldAlwaysShowAccessibilityMenu() const { |
133 return false; | 142 return false; |
134 } | 143 } |
135 | 144 |
136 void TestShellDelegate::SilenceSpokenFeedback() const { | 145 void TestShellDelegate::SilenceSpokenFeedback() const { |
137 } | 146 } |
138 | 147 |
139 app_list::AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { | 148 app_list::AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { |
140 return NULL; | 149 return NULL; |
141 } | 150 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 base::string16 TestShellDelegate::GetProductName() const { | 219 base::string16 TestShellDelegate::GetProductName() const { |
211 return base::string16(); | 220 return base::string16(); |
212 } | 221 } |
213 | 222 |
214 TestSessionStateDelegate* TestShellDelegate::test_session_state_delegate() { | 223 TestSessionStateDelegate* TestShellDelegate::test_session_state_delegate() { |
215 return test_session_state_delegate_; | 224 return test_session_state_delegate_; |
216 } | 225 } |
217 | 226 |
218 } // namespace test | 227 } // namespace test |
219 } // namespace ash | 228 } // namespace ash |
OLD | NEW |