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

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

Issue 1903043002: Use correct WebView from AccessibilityController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event-sender-per-view
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 "components/test_runner/app_banner_client.h" 9 #include "components/test_runner/app_banner_client.h"
10 #include "components/test_runner/mock_web_audio_device.h" 10 #include "components/test_runner/mock_web_audio_device.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 scoped_ptr<blink::WebAppBannerClient> 83 scoped_ptr<blink::WebAppBannerClient>
84 WebTestInterfaces::CreateAppBannerClient() { 84 WebTestInterfaces::CreateAppBannerClient() {
85 scoped_ptr<AppBannerClient> client(new AppBannerClient); 85 scoped_ptr<AppBannerClient> client(new AppBannerClient);
86 interfaces_->SetAppBannerClient(client.get()); 86 interfaces_->SetAppBannerClient(client.get());
87 return std::move(client); 87 return std::move(client);
88 } 88 }
89 89
90 scoped_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient( 90 scoped_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient(
91 WebTestProxyBase* web_test_proxy_base) { 91 WebTestProxyBase* web_test_proxy_base) {
92 return make_scoped_ptr(new WebFrameTestClient( 92 return make_scoped_ptr(new WebFrameTestClient(interfaces_->GetTestRunner(),
93 interfaces_->GetTestRunner(), interfaces_->GetDelegate(), 93 interfaces_->GetDelegate(),
94 interfaces_->GetAccessibilityController(), web_test_proxy_base)); 94 web_test_proxy_base));
95 } 95 }
96 96
97 scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient( 97 scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
98 WebTestProxyBase* web_test_proxy_base) { 98 WebTestProxyBase* web_test_proxy_base) {
99 return make_scoped_ptr(new WebViewTestClient(interfaces_->GetTestRunner(), 99 return make_scoped_ptr(new WebViewTestClient(interfaces_->GetTestRunner(),
100 web_test_proxy_base)); 100 web_test_proxy_base));
101 } 101 }
102 102
103 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { 103 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() {
104 std::vector<blink::WebView*> result; 104 std::vector<blink::WebView*> result;
105 for (WebTestProxyBase* proxy : interfaces_->GetWindowList()) 105 for (WebTestProxyBase* proxy : interfaces_->GetWindowList())
106 result.push_back(proxy->web_view()); 106 result.push_back(proxy->web_view());
107 return result; 107 return result;
108 } 108 }
109 109
110 } // namespace test_runner 110 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_client.cc ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698