| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/shell/renderer/test_runner/test_interfaces.h" | 5 #include "content/shell/renderer/test_runner/test_interfaces.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 return proxy_; | 176 return proxy_; |
| 177 } | 177 } |
| 178 | 178 |
| 179 const std::vector<WebTestProxyBase*>& TestInterfaces::GetWindowList() { | 179 const std::vector<WebTestProxyBase*>& TestInterfaces::GetWindowList() { |
| 180 return window_list_; | 180 return window_list_; |
| 181 } | 181 } |
| 182 | 182 |
| 183 blink::WebThemeEngine* TestInterfaces::GetThemeEngine() { | 183 blink::WebThemeEngine* TestInterfaces::GetThemeEngine() { |
| 184 if (!test_runner_->UseMockTheme()) | 184 if (!test_runner_->UseMockTheme()) |
| 185 return 0; | 185 return 0; |
| 186 #if defined(OS_MACOSX) | |
| 187 if (!theme_engine_.get()) | |
| 188 theme_engine_.reset(new MockWebThemeEngineMac()); | |
| 189 #else | |
| 190 if (!theme_engine_.get()) | 186 if (!theme_engine_.get()) |
| 191 theme_engine_.reset(new MockWebThemeEngine()); | 187 theme_engine_.reset(new MockWebThemeEngine()); |
| 192 #endif | |
| 193 return theme_engine_.get(); | 188 return theme_engine_.get(); |
| 194 } | 189 } |
| 195 | 190 |
| 196 } // namespace content | 191 } // namespace content |
| OLD | NEW |