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

Side by Side Diff: content/public/test/layouttest_support.h

Issue 264773002: Start moving WebUserMediaClient on the chromium side to be per frame instead of view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/public/renderer/render_view_observer.h ('k') | content/renderer/render_frame_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_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 "third_party/WebKit/public/platform/WebScreenOrientationType.h" 12 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
13 13
14 namespace blink { 14 namespace blink {
15 class WebDeviceMotionData; 15 class WebDeviceMotionData;
16 class WebDeviceOrientationData; 16 class WebDeviceOrientationData;
17 class WebGamepad; 17 class WebGamepad;
18 class WebGamepads; 18 class WebGamepads;
19 struct WebSize; 19 struct WebSize;
20 } 20 }
21 21
22 namespace content { 22 namespace content {
23 23
24 class PageState; 24 class PageState;
25 class RenderFrame;
25 class RenderView; 26 class RenderView;
26 class WebTestProxyBase; 27 class WebTestProxyBase;
27 28
28 // Turn the browser process into layout test mode. 29 // Turn the browser process into layout test mode.
29 void EnableBrowserLayoutTestMode(); 30 void EnableBrowserLayoutTestMode();
30 31
31 /////////////////////////////////////////////////////////////////////////////// 32 ///////////////////////////////////////////////////////////////////////////////
32 // The following methods are meant to be used from a renderer. 33 // The following methods are meant to be used from a renderer.
33 34
34 // Turn a renderer into layout test mode. 35 // Turn a renderer into layout test mode.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // See http://crbug.com/309760 for details. 88 // See http://crbug.com/309760 for details.
88 void UseSynchronousResizeMode(RenderView* render_view, bool enable); 89 void UseSynchronousResizeMode(RenderView* render_view, bool enable);
89 90
90 // Control auto resize mode. 91 // Control auto resize mode.
91 void EnableAutoResizeMode(RenderView* render_view, 92 void EnableAutoResizeMode(RenderView* render_view,
92 const blink::WebSize& min_size, 93 const blink::WebSize& min_size,
93 const blink::WebSize& max_size); 94 const blink::WebSize& max_size);
94 void DisableAutoResizeMode(RenderView* render_view, 95 void DisableAutoResizeMode(RenderView* render_view,
95 const blink::WebSize& new_size); 96 const blink::WebSize& new_size);
96 97
97 // Forces the |render_view| to use mock media streams. 98 // Forces the |render_frame| to use mock media streams.
98 void UseMockMediaStreams(RenderView* render_view); 99 void UseMockMediaStreams(RenderFrame* render_frame);
99 100
100 // Provides a text dump of the contents of the given page state. 101 // Provides a text dump of the contents of the given page state.
101 std::string DumpBackForwardList(std::vector<PageState>& page_state, 102 std::string DumpBackForwardList(std::vector<PageState>& page_state,
102 size_t current_index); 103 size_t current_index);
103 104
104 } // namespace content 105 } // namespace content
105 106
106 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 107 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_view_observer.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698