| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/test_runner/web_test_interfaces.h" | 5 #include "components/test_runner/web_test_interfaces.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "components/test_runner/app_banner_client.h" | 10 #include "components/test_runner/app_banner_client.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 using namespace blink; | 21 using namespace blink; |
| 22 | 22 |
| 23 namespace test_runner { | 23 namespace test_runner { |
| 24 | 24 |
| 25 WebTestInterfaces::WebTestInterfaces() : interfaces_(new TestInterfaces()) { | 25 WebTestInterfaces::WebTestInterfaces() : interfaces_(new TestInterfaces()) { |
| 26 } | 26 } |
| 27 | 27 |
| 28 WebTestInterfaces::~WebTestInterfaces() { | 28 WebTestInterfaces::~WebTestInterfaces() { |
| 29 } | 29 } |
| 30 | 30 |
| 31 void WebTestInterfaces::SetWebView(WebView* web_view, WebTestProxyBase* proxy) { | 31 void WebTestInterfaces::SetMainView(WebView* web_view) { |
| 32 interfaces_->SetWebView(web_view, proxy); | 32 interfaces_->SetMainView(web_view); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void WebTestInterfaces::SetDelegate(WebTestDelegate* delegate) { | 35 void WebTestInterfaces::SetDelegate(WebTestDelegate* delegate) { |
| 36 interfaces_->SetDelegate(delegate); | 36 interfaces_->SetDelegate(delegate); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void WebTestInterfaces::ResetAll() { | 39 void WebTestInterfaces::ResetAll() { |
| 40 interfaces_->ResetAll(); | 40 interfaces_->ResetAll(); |
| 41 } | 41 } |
| 42 | 42 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 102 } |
| 103 | 103 |
| 104 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { | 104 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { |
| 105 std::vector<blink::WebView*> result; | 105 std::vector<blink::WebView*> result; |
| 106 for (WebTestProxyBase* proxy : interfaces_->GetWindowList()) | 106 for (WebTestProxyBase* proxy : interfaces_->GetWindowList()) |
| 107 result.push_back(proxy->web_view()); | 107 result.push_back(proxy->web_view()); |
| 108 return result; | 108 return result; |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace test_runner | 111 } // namespace test_runner |
| OLD | NEW |