| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 class WebAppBannerClient; | |
| 12 class WebAudioDevice; | |
| 13 class WebFrame; | |
| 14 class WebMediaStreamCenter; | |
| 15 class WebMediaStreamCenterClient; | |
| 16 class WebMIDIAccessor; | |
| 17 class WebMIDIAccessorClient; | |
| 18 class WebRTCPeerConnectionHandler; | |
| 19 class WebRTCPeerConnectionHandlerClient; | |
| 20 class WebThemeEngine; | |
| 21 class WebURL; | |
| 22 class WebView; | |
| 23 } | |
| 24 | |
| 25 namespace content { | |
| 26 | |
| 27 class TestInterfaces; | |
| 28 class WebTestDelegate; | |
| 29 class WebTestProxyBase; | |
| 30 class WebTestRunner; | |
| 31 | |
| 32 class WebTestInterfaces { | |
| 33 public: | |
| 34 WebTestInterfaces(); | |
| 35 ~WebTestInterfaces(); | |
| 36 | |
| 37 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); | |
| 38 void SetDelegate(WebTestDelegate* delegate); | |
| 39 void BindTo(blink::WebFrame* frame); | |
| 40 void ResetAll(); | |
| 41 void SetTestIsRunning(bool running); | |
| 42 void ConfigureForTestWithURL(const blink::WebURL& test_url, | |
| 43 bool generate_pixels); | |
| 44 | |
| 45 WebTestRunner* TestRunner(); | |
| 46 blink::WebThemeEngine* ThemeEngine(); | |
| 47 | |
| 48 blink::WebMediaStreamCenter* CreateMediaStreamCenter( | |
| 49 blink::WebMediaStreamCenterClient* client); | |
| 50 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler( | |
| 51 blink::WebRTCPeerConnectionHandlerClient* client); | |
| 52 | |
| 53 blink::WebMIDIAccessor* CreateMIDIAccessor( | |
| 54 blink::WebMIDIAccessorClient* client); | |
| 55 | |
| 56 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); | |
| 57 | |
| 58 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); | |
| 59 | |
| 60 TestInterfaces* GetTestInterfaces(); | |
| 61 | |
| 62 private: | |
| 63 scoped_ptr<TestInterfaces> interfaces_; | |
| 64 | |
| 65 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); | |
| 66 }; | |
| 67 | |
| 68 } // namespace content | |
| 69 | |
| 70 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | |
| OLD | NEW |