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 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 void setStatusText(const blink::WebString& text) override { | 223 void setStatusText(const blink::WebString& text) override { |
224 view_test_client()->setStatusText(text); | 224 view_test_client()->setStatusText(text); |
225 Base::setStatusText(text); | 225 Base::setStatusText(text); |
226 } | 226 } |
227 void printPage(blink::WebLocalFrame* frame) override { | 227 void printPage(blink::WebLocalFrame* frame) override { |
228 view_test_client()->printPage(frame); | 228 view_test_client()->printPage(frame); |
229 } | 229 } |
230 blink::WebSpeechRecognizer* speechRecognizer() override { | 230 blink::WebSpeechRecognizer* speechRecognizer() override { |
231 return view_test_client()->speechRecognizer(); | 231 return view_test_client()->speechRecognizer(); |
232 } | 232 } |
233 bool runFileChooser(const blink::WebFileChooserParams& params, | |
234 blink::WebFileChooserCompletion* completion) override { | |
235 return view_test_client()->runFileChooser(params, completion); | |
236 } | |
237 void showValidationMessage( | 233 void showValidationMessage( |
238 const blink::WebRect& anchor_in_root_view, | 234 const blink::WebRect& anchor_in_root_view, |
239 const blink::WebString& main_message, | 235 const blink::WebString& main_message, |
240 blink::WebTextDirection main_message_hint, | 236 blink::WebTextDirection main_message_hint, |
241 const blink::WebString& sub_message, | 237 const blink::WebString& sub_message, |
242 blink::WebTextDirection sub_message_hint) override { | 238 blink::WebTextDirection sub_message_hint) override { |
243 view_test_client()->showValidationMessage(anchor_in_root_view, main_message, | 239 view_test_client()->showValidationMessage(anchor_in_root_view, main_message, |
244 main_message_hint, sub_message, | 240 main_message_hint, sub_message, |
245 sub_message_hint); | 241 sub_message_hint); |
246 } | 242 } |
247 blink::WebString acceptLanguages() override { | 243 blink::WebString acceptLanguages() override { |
248 return view_test_client()->acceptLanguages(); | 244 return view_test_client()->acceptLanguages(); |
249 } | 245 } |
250 | 246 |
251 private: | 247 private: |
252 virtual ~WebTestProxy() {} | 248 virtual ~WebTestProxy() {} |
253 | 249 |
254 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 250 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
255 }; | 251 }; |
256 | 252 |
257 } // namespace test_runner | 253 } // namespace test_runner |
258 | 254 |
259 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 255 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
OLD | NEW |