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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 return new TestUserWallpaperDelegate(); | 113 return new TestUserWallpaperDelegate(); |
114 } | 114 } |
115 | 115 |
116 SessionStateDelegate* TestShellDelegate::CreateSessionStateDelegate() { | 116 SessionStateDelegate* TestShellDelegate::CreateSessionStateDelegate() { |
117 DCHECK(!test_session_state_delegate_); | 117 DCHECK(!test_session_state_delegate_); |
118 test_session_state_delegate_ = new TestSessionStateDelegate(); | 118 test_session_state_delegate_ = new TestSessionStateDelegate(); |
119 return test_session_state_delegate_; | 119 return test_session_state_delegate_; |
120 } | 120 } |
121 | 121 |
122 AccessibilityDelegate* TestShellDelegate::CreateAccessibilityDelegate() { | 122 AccessibilityDelegate* TestShellDelegate::CreateAccessibilityDelegate() { |
123 return new internal::DefaultAccessibilityDelegate(); | 123 return new DefaultAccessibilityDelegate(); |
124 } | 124 } |
125 | 125 |
126 NewWindowDelegate* TestShellDelegate::CreateNewWindowDelegate() { | 126 NewWindowDelegate* TestShellDelegate::CreateNewWindowDelegate() { |
127 return new NewWindowDelegateImpl; | 127 return new NewWindowDelegateImpl; |
128 } | 128 } |
129 | 129 |
130 MediaDelegate* TestShellDelegate::CreateMediaDelegate() { | 130 MediaDelegate* TestShellDelegate::CreateMediaDelegate() { |
131 return new MediaDelegateImpl; | 131 return new MediaDelegateImpl; |
132 } | 132 } |
133 | 133 |
(...skipping 16 matching lines...) Expand all Loading... |
150 base::string16 TestShellDelegate::GetProductName() const { | 150 base::string16 TestShellDelegate::GetProductName() const { |
151 return base::string16(); | 151 return base::string16(); |
152 } | 152 } |
153 | 153 |
154 TestSessionStateDelegate* TestShellDelegate::test_session_state_delegate() { | 154 TestSessionStateDelegate* TestShellDelegate::test_session_state_delegate() { |
155 return test_session_state_delegate_; | 155 return test_session_state_delegate_; |
156 } | 156 } |
157 | 157 |
158 } // namespace test | 158 } // namespace test |
159 } // namespace ash | 159 } // namespace ash |
OLD | NEW |