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

Side by Side Diff: content/shell/test_runner/web_view_test_proxy.h

Issue 2907463003: Remove window.status plumbing, it's unused and the spec says it's a dummy (Closed)
Patch Set: Drop accidental change Created 3 years, 7 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 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 #ifndef CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
6 #define CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const blink::WebWindowFeatures& features, 190 const blink::WebWindowFeatures& features,
191 const blink::WebString& frame_name, 191 const blink::WebString& frame_name,
192 blink::WebNavigationPolicy policy, 192 blink::WebNavigationPolicy policy,
193 bool suppress_opener) override { 193 bool suppress_opener) override {
194 if (!view_test_client()->CreateView(creator, request, features, frame_name, 194 if (!view_test_client()->CreateView(creator, request, features, frame_name,
195 policy, suppress_opener)) 195 policy, suppress_opener))
196 return nullptr; 196 return nullptr;
197 return Base::CreateView(creator, request, features, frame_name, policy, 197 return Base::CreateView(creator, request, features, frame_name, policy,
198 suppress_opener); 198 suppress_opener);
199 } 199 }
200 void SetStatusText(const blink::WebString& text) override {
201 view_test_client()->SetStatusText(text);
202 Base::SetStatusText(text);
203 }
204 void PrintPage(blink::WebLocalFrame* frame) override { 200 void PrintPage(blink::WebLocalFrame* frame) override {
205 view_test_client()->PrintPage(frame); 201 view_test_client()->PrintPage(frame);
206 } 202 }
207 blink::WebSpeechRecognizer* SpeechRecognizer() override { 203 blink::WebSpeechRecognizer* SpeechRecognizer() override {
208 return view_test_client()->SpeechRecognizer(); 204 return view_test_client()->SpeechRecognizer();
209 } 205 }
210 void ShowValidationMessage( 206 void ShowValidationMessage(
211 const blink::WebRect& anchor_in_root_view, 207 const blink::WebRect& anchor_in_root_view,
212 const blink::WebString& main_message, 208 const blink::WebString& main_message,
213 blink::WebTextDirection main_message_hint, 209 blink::WebTextDirection main_message_hint,
214 const blink::WebString& sub_message, 210 const blink::WebString& sub_message,
215 blink::WebTextDirection sub_message_hint) override { 211 blink::WebTextDirection sub_message_hint) override {
216 view_test_client()->ShowValidationMessage(anchor_in_root_view, main_message, 212 view_test_client()->ShowValidationMessage(anchor_in_root_view, main_message,
217 main_message_hint, sub_message, 213 main_message_hint, sub_message,
218 sub_message_hint); 214 sub_message_hint);
219 } 215 }
220 blink::WebString AcceptLanguages() override { 216 blink::WebString AcceptLanguages() override {
221 return view_test_client()->AcceptLanguages(); 217 return view_test_client()->AcceptLanguages();
222 } 218 }
223 219
224 private: 220 private:
225 virtual ~WebViewTestProxy() {} 221 virtual ~WebViewTestProxy() {}
226 222
227 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy); 223 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy);
228 }; 224 };
229 225
230 } // namespace test_runner 226 } // namespace test_runner
231 227
232 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ 228 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698