Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: components/test_runner/web_test_delegate.h

Issue 1391363002: Extend components/test_runner's generated WebMediaStream to have a Chrome VideoTrack and Source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/test_runner/test_runner.h ('k') | content/public/renderer/media_stream_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_TEST_DELEGATE_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "third_party/WebKit/public/platform/WebString.h" 13 #include "third_party/WebKit/public/platform/WebString.h"
14 #include "third_party/WebKit/public/platform/WebURL.h" 14 #include "third_party/WebKit/public/platform/WebURL.h"
15 #include "third_party/WebKit/public/platform/WebVector.h" 15 #include "third_party/WebKit/public/platform/WebVector.h"
16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
17 17
18 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE 18 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
19 19
20 namespace blink { 20 namespace blink {
21 class WebBatteryStatus; 21 class WebBatteryStatus;
22 class WebDeviceMotionData; 22 class WebDeviceMotionData;
23 class WebDeviceOrientationData; 23 class WebDeviceOrientationData;
24 class WebFrame; 24 class WebFrame;
25 class WebGamepad; 25 class WebGamepad;
26 class WebGamepads; 26 class WebGamepads;
27 class WebHistoryItem; 27 class WebHistoryItem;
28 class WebLayer; 28 class WebLayer;
29 class WebLocalFrame; 29 class WebLocalFrame;
30 class WebMediaStream;
30 class WebPlugin; 31 class WebPlugin;
31 struct WebPluginParams; 32 struct WebPluginParams;
32 class WebURLResponse;
33 class WebView;
34 struct WebRect; 33 struct WebRect;
35 struct WebSize; 34 struct WebSize;
36 struct WebURLError; 35 struct WebURLError;
36 class WebURLResponse;
37 class WebView;
37 } 38 }
38 39
39 namespace cc { 40 namespace cc {
40 class TextureLayer; 41 class TextureLayer;
41 class TextureLayerClient; 42 class TextureLayerClient;
42 class SharedBitmapManager; 43 class SharedBitmapManager;
43 } 44 }
44 45
45 namespace test_runner { 46 namespace test_runner {
46 47
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Sends a message to the LayoutTestPermissionManager in order for it to 238 // Sends a message to the LayoutTestPermissionManager in order for it to
238 // update its database. 239 // update its database.
239 virtual void SetPermission(const std::string& permission_name, 240 virtual void SetPermission(const std::string& permission_name,
240 const std::string& permission_value, 241 const std::string& permission_value,
241 const GURL& origin, 242 const GURL& origin,
242 const GURL& embedding_origin) = 0; 243 const GURL& embedding_origin) = 0;
243 244
244 // Clear all the permissions set via SetPermission(). 245 // Clear all the permissions set via SetPermission().
245 virtual void ResetPermissions() = 0; 246 virtual void ResetPermissions() = 0;
246 247
248 // Add content MediaStream classes to the Blink MediaStream ones.
249 virtual bool AddMediaStreamSourceAndTrack(blink::WebMediaStream* stream) = 0;
250
247 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 251 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
248 252
249 // Causes the beforeinstallprompt event to be sent to the renderer with a 253 // Causes the beforeinstallprompt event to be sent to the renderer with a
250 // request id of |request_id|. |event_platforms| are the platforms to be sent 254 // request id of |request_id|. |event_platforms| are the platforms to be sent
251 // with the event. Once the event listener completes, |callback| will be 255 // with the event. Once the event listener completes, |callback| will be
252 // called with a boolean argument. This argument will be true if the event is 256 // called with a boolean argument. This argument will be true if the event is
253 // canceled, and false otherwise. 257 // canceled, and false otherwise.
254 virtual void DispatchBeforeInstallPromptEvent( 258 virtual void DispatchBeforeInstallPromptEvent(
255 int request_id, 259 int request_id,
256 const std::vector<std::string>& event_platforms, 260 const std::vector<std::string>& event_platforms,
(...skipping 10 matching lines...) Expand all
267 virtual blink::WebPlugin* CreatePluginPlaceholder( 271 virtual blink::WebPlugin* CreatePluginPlaceholder(
268 blink::WebLocalFrame* frame, 272 blink::WebLocalFrame* frame,
269 const blink::WebPluginParams& params) = 0; 273 const blink::WebPluginParams& params) = 0;
270 274
271 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; 275 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0;
272 }; 276 };
273 277
274 } // namespace test_runner 278 } // namespace test_runner
275 279
276 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 280 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.h ('k') | content/public/renderer/media_stream_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698