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/default_accessibility_delegate.h" | 9 #include "ash/default_accessibility_delegate.h" |
10 #include "ash/gpu_support_stub.h" | 10 #include "ash/gpu_support_stub.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 ash::ShelfItemDelegate* item_delegate, | 188 ash::ShelfItemDelegate* item_delegate, |
189 ash::ShelfItem* item) { | 189 ash::ShelfItem* item) { |
190 return NULL; | 190 return NULL; |
191 } | 191 } |
192 | 192 |
193 GPUSupport* TestShellDelegate::CreateGPUSupport() { | 193 GPUSupport* TestShellDelegate::CreateGPUSupport() { |
194 // Real GPU support depends on src/content, so just use a stub. | 194 // Real GPU support depends on src/content, so just use a stub. |
195 return new GPUSupportStub; | 195 return new GPUSupportStub; |
196 } | 196 } |
197 | 197 |
| 198 UserMetricsRecorderProxy* TestShellDelegate::CreateUserMetricsRecorderProxy() { |
| 199 return nullptr; |
| 200 } |
| 201 |
198 base::string16 TestShellDelegate::GetProductName() const { | 202 base::string16 TestShellDelegate::GetProductName() const { |
199 return base::string16(); | 203 return base::string16(); |
200 } | 204 } |
201 | 205 |
202 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) { | 206 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) { |
203 #if defined(OS_CHROMEOS) | 207 #if defined(OS_CHROMEOS) |
204 Shell* shell = Shell::GetInstance(); | 208 Shell* shell = Shell::GetInstance(); |
205 static_cast<MediaDelegateImpl*>(shell->media_delegate()) | 209 static_cast<MediaDelegateImpl*>(shell->media_delegate()) |
206 ->set_media_capture_state(state); | 210 ->set_media_capture_state(state); |
207 shell->system_tray_notifier()->NotifyMediaCaptureChanged(); | 211 shell->system_tray_notifier()->NotifyMediaCaptureChanged(); |
208 #endif | 212 #endif |
209 } | 213 } |
210 | 214 |
211 } // namespace test | 215 } // namespace test |
212 } // namespace ash | 216 } // namespace ash |
OLD | NEW |