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_FRAME_TEST_PROXY_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 void willStartUsingPeerConnectionHandler( | 266 void willStartUsingPeerConnectionHandler( |
267 blink::WebRTCPeerConnectionHandler* handler) override { | 267 blink::WebRTCPeerConnectionHandler* handler) override { |
268 // RenderFrameImpl::willStartUsingPeerConnectionHandler can not be mocked. | 268 // RenderFrameImpl::willStartUsingPeerConnectionHandler can not be mocked. |
269 // See http://crbug/363285. | 269 // See http://crbug/363285. |
270 } | 270 } |
271 | 271 |
272 blink::WebUserMediaClient* userMediaClient() override { | 272 blink::WebUserMediaClient* userMediaClient() override { |
273 return test_client()->userMediaClient(); | 273 return test_client()->userMediaClient(); |
274 } | 274 } |
275 | 275 |
276 bool willCheckAndDispatchMessageEvent( | |
277 blink::WebLocalFrame* source_frame, | |
278 blink::WebFrame* target_frame, | |
279 blink::WebSecurityOrigin target, | |
280 blink::WebDOMMessageEvent event) override { | |
281 if (test_client()->willCheckAndDispatchMessageEvent( | |
282 source_frame, target_frame, target, event)) | |
283 return true; | |
284 return Base::willCheckAndDispatchMessageEvent( | |
285 source_frame, target_frame, target, event); | |
286 } | |
287 | |
288 void postAccessibilityEvent(const blink::WebAXObject& object, | 276 void postAccessibilityEvent(const blink::WebAXObject& object, |
289 blink::WebAXEvent event) override { | 277 blink::WebAXEvent event) override { |
290 test_client()->postAccessibilityEvent(object, event); | 278 test_client()->postAccessibilityEvent(object, event); |
291 Base::postAccessibilityEvent(object, event); | 279 Base::postAccessibilityEvent(object, event); |
292 } | 280 } |
293 | 281 |
294 void checkIfAudioSinkExistsAndIsAuthorized( | 282 void checkIfAudioSinkExistsAndIsAuthorized( |
295 const blink::WebString& sink_id, | 283 const blink::WebString& sink_id, |
296 const blink::WebSecurityOrigin& security_origin, | 284 const blink::WebSecurityOrigin& security_origin, |
297 blink::WebSetSinkIdCallbacks* web_callbacks) override { | 285 blink::WebSetSinkIdCallbacks* web_callbacks) override { |
298 test_client()->checkIfAudioSinkExistsAndIsAuthorized( | 286 test_client()->checkIfAudioSinkExistsAndIsAuthorized( |
299 sink_id, security_origin, web_callbacks); | 287 sink_id, security_origin, web_callbacks); |
300 } | 288 } |
301 | 289 |
302 void didClearWindowObject(blink::WebLocalFrame* frame) override { | 290 void didClearWindowObject(blink::WebLocalFrame* frame) override { |
303 test_client()->didClearWindowObject(frame); | 291 test_client()->didClearWindowObject(frame); |
304 Base::didClearWindowObject(frame); | 292 Base::didClearWindowObject(frame); |
305 } | 293 } |
306 | 294 |
307 private: | 295 private: |
308 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); | 296 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); |
309 }; | 297 }; |
310 | 298 |
311 } // namespace test_runner | 299 } // namespace test_runner |
312 | 300 |
313 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 301 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
OLD | NEW |