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

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

Issue 246163006: Move history serialization from contet/public/renderer/ to content/renderer/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix braces Created 6 years, 8 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
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>
9 #include <vector>
10
8 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
9 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 12 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
10 13
11 namespace blink { 14 namespace blink {
12 class WebDeviceMotionData; 15 class WebDeviceMotionData;
13 class WebDeviceOrientationData; 16 class WebDeviceOrientationData;
14 class WebGamepad; 17 class WebGamepad;
15 class WebGamepads; 18 class WebGamepads;
16 struct WebSize; 19 struct WebSize;
17 } 20 }
18 21
19 namespace content { 22 namespace content {
20 23
24 class PageState;
21 class RenderView; 25 class RenderView;
22 class WebTestProxyBase; 26 class WebTestProxyBase;
23 27
24 // Turn the browser process into layout test mode. 28 // Turn the browser process into layout test mode.
25 void EnableBrowserLayoutTestMode(); 29 void EnableBrowserLayoutTestMode();
26 30
27 /////////////////////////////////////////////////////////////////////////////// 31 ///////////////////////////////////////////////////////////////////////////////
28 // The following methods are meant to be used from a renderer. 32 // The following methods are meant to be used from a renderer.
29 33
30 // Turn a renderer into layout test mode. 34 // Turn a renderer into layout test mode.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Control auto resize mode. 90 // Control auto resize mode.
87 void EnableAutoResizeMode(RenderView* render_view, 91 void EnableAutoResizeMode(RenderView* render_view,
88 const blink::WebSize& min_size, 92 const blink::WebSize& min_size,
89 const blink::WebSize& max_size); 93 const blink::WebSize& max_size);
90 void DisableAutoResizeMode(RenderView* render_view, 94 void DisableAutoResizeMode(RenderView* render_view,
91 const blink::WebSize& new_size); 95 const blink::WebSize& new_size);
92 96
93 // Forces the |render_view| to use mock media streams. 97 // Forces the |render_view| to use mock media streams.
94 void UseMockMediaStreams(RenderView* render_view); 98 void UseMockMediaStreams(RenderView* render_view);
95 99
100 // Provides a text dump of the contents of the given page state.
101 std::string DumpBackForwardList(std::vector<PageState>& page_state,
102 size_t current_index);
103
96 } // namespace content 104 } // namespace content
97 105
98 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 106 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/history_item_serialization.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698