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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 } | 262 } |
263 | 263 |
264 virtual blink::WebUserMediaClient* userMediaClient() { | 264 virtual blink::WebUserMediaClient* userMediaClient() { |
265 return base_proxy_->GetUserMediaClient(); | 265 return base_proxy_->GetUserMediaClient(); |
266 } | 266 } |
267 | 267 |
268 virtual blink::WebMIDIClient* webMIDIClient() { | 268 virtual blink::WebMIDIClient* webMIDIClient() { |
269 return base_proxy_->GetWebMIDIClient(); | 269 return base_proxy_->GetWebMIDIClient(); |
270 } | 270 } |
271 | 271 |
| 272 virtual blink::WebPushClient* pushClient() { |
| 273 return base_proxy_->GetWebPushClient(); |
| 274 } |
| 275 |
272 virtual bool willCheckAndDispatchMessageEvent( | 276 virtual bool willCheckAndDispatchMessageEvent( |
273 blink::WebLocalFrame* source_frame, | 277 blink::WebLocalFrame* source_frame, |
274 blink::WebFrame* target_frame, | 278 blink::WebFrame* target_frame, |
275 blink::WebSecurityOrigin target, | 279 blink::WebSecurityOrigin target, |
276 blink::WebDOMMessageEvent event) { | 280 blink::WebDOMMessageEvent event) { |
277 if (base_proxy_->WillCheckAndDispatchMessageEvent( | 281 if (base_proxy_->WillCheckAndDispatchMessageEvent( |
278 source_frame, target_frame, target, event)) | 282 source_frame, target_frame, target, event)) |
279 return true; | 283 return true; |
280 return Base::willCheckAndDispatchMessageEvent( | 284 return Base::willCheckAndDispatchMessageEvent( |
281 source_frame, target_frame, target, event); | 285 source_frame, target_frame, target, event); |
(...skipping 14 matching lines...) Expand all Loading... |
296 #endif | 300 #endif |
297 | 301 |
298 WebTestProxyBase* base_proxy_; | 302 WebTestProxyBase* base_proxy_; |
299 | 303 |
300 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); | 304 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); |
301 }; | 305 }; |
302 | 306 |
303 } // namespace content | 307 } // namespace content |
304 | 308 |
305 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 309 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
OLD | NEW |