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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h" | 9 #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h" |
10 #include "content/shell/renderer/test_runner/test_interfaces.h" | 10 #include "content/shell/renderer/test_runner/test_interfaces.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 blink::WebLocalFrame* frame, | 259 blink::WebLocalFrame* frame, |
260 blink::WebRTCPeerConnectionHandler* handler) { | 260 blink::WebRTCPeerConnectionHandler* handler) { |
261 // RenderFrameImpl::willStartUsingPeerConnectionHandler can not be mocked. | 261 // RenderFrameImpl::willStartUsingPeerConnectionHandler can not be mocked. |
262 // See http://crbug/363285. | 262 // See http://crbug/363285. |
263 } | 263 } |
264 | 264 |
265 virtual blink::WebUserMediaClient* userMediaClient() { | 265 virtual blink::WebUserMediaClient* userMediaClient() { |
266 return base_proxy_->GetUserMediaClient(); | 266 return base_proxy_->GetUserMediaClient(); |
267 } | 267 } |
268 | 268 |
269 virtual blink::WebMIDIClient* webMIDIClient() { | |
270 return base_proxy_->GetWebMIDIClient(); | |
271 } | |
272 | |
273 virtual bool willCheckAndDispatchMessageEvent( | 269 virtual bool willCheckAndDispatchMessageEvent( |
274 blink::WebLocalFrame* source_frame, | 270 blink::WebLocalFrame* source_frame, |
275 blink::WebFrame* target_frame, | 271 blink::WebFrame* target_frame, |
276 blink::WebSecurityOrigin target, | 272 blink::WebSecurityOrigin target, |
277 blink::WebDOMMessageEvent event) { | 273 blink::WebDOMMessageEvent event) { |
278 if (base_proxy_->WillCheckAndDispatchMessageEvent( | 274 if (base_proxy_->WillCheckAndDispatchMessageEvent( |
279 source_frame, target_frame, target, event)) | 275 source_frame, target_frame, target, event)) |
280 return true; | 276 return true; |
281 return Base::willCheckAndDispatchMessageEvent( | 277 return Base::willCheckAndDispatchMessageEvent( |
282 source_frame, target_frame, target, event); | 278 source_frame, target_frame, target, event); |
(...skipping 14 matching lines...) Expand all Loading... |
297 #endif | 293 #endif |
298 | 294 |
299 WebTestProxyBase* base_proxy_; | 295 WebTestProxyBase* base_proxy_; |
300 | 296 |
301 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); | 297 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); |
302 }; | 298 }; |
303 | 299 |
304 } // namespace content | 300 } // namespace content |
305 | 301 |
306 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 302 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
OLD | NEW |