Enable right clicking on the applist doodle web contents and log the data.
[chromium-blink-merge.git] / content / shell / renderer / test_runner / web_test_interfaces.h
blob75cbc7a47e96dfbbeeb71404db19ca077acc5961
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.
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_
8 #include "base/memory/scoped_ptr.h"
10 namespace blink {
11 class WebAudioDevice;
12 class WebFrame;
13 class WebMediaStreamCenter;
14 class WebMediaStreamCenterClient;
15 class WebMIDIAccessor;
16 class WebMIDIAccessorClient;
17 class WebRTCPeerConnectionHandler;
18 class WebRTCPeerConnectionHandlerClient;
19 class WebThemeEngine;
20 class WebURL;
21 class WebView;
24 namespace content {
26 class TestInterfaces;
27 class WebTestDelegate;
28 class WebTestProxyBase;
29 class WebTestRunner;
31 class WebTestInterfaces {
32 public:
33 WebTestInterfaces();
34 ~WebTestInterfaces();
36 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy);
37 void SetDelegate(WebTestDelegate* delegate);
38 void BindTo(blink::WebFrame* frame);
39 void ResetAll();
40 void SetTestIsRunning(bool running);
41 void ConfigureForTestWithURL(const blink::WebURL& test_url,
42 bool generate_pixels);
44 WebTestRunner* TestRunner();
45 blink::WebThemeEngine* ThemeEngine();
47 blink::WebMediaStreamCenter* CreateMediaStreamCenter(
48 blink::WebMediaStreamCenterClient* client);
49 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler(
50 blink::WebRTCPeerConnectionHandlerClient* client);
52 blink::WebMIDIAccessor* CreateMIDIAccessor(
53 blink::WebMIDIAccessorClient* client);
55 blink::WebAudioDevice* CreateAudioDevice(double sample_rate);
57 TestInterfaces* GetTestInterfaces();
59 private:
60 scoped_ptr<TestInterfaces> interfaces_;
62 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
65 } // namespace content
67 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_