Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: components/test_runner/web_test_interfaces.cc

Issue 1896623002: Setting TestRunner's main window from BlinkTestRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicate-across-all-renderers
Patch Set: Rebasing... Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/test_runner/web_test_interfaces.h ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698