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

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

Issue 694963003: Revert of Clean up the page state saving mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « content/public/renderer/render_view.h ('k') | content/public/test/render_view_test.cc » ('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
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). 69 // a listener through BlinkPlatformImpl::setDeviceOrientationListener().
70 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); 70 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data);
71 71
72 // Notifies blink that battery status has changed. 72 // Notifies blink that battery status has changed.
73 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status); 73 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status);
74 74
75 // Returns the length of the local session history of a render view. 75 // Returns the length of the local session history of a render view.
76 int GetLocalSessionHistoryLength(RenderView* render_view); 76 int GetLocalSessionHistoryLength(RenderView* render_view);
77 77
78 // Sync the current session history to the browser process. 78 // Sync the current session history to the browser process.
79 void ForcePageStateFlush(RenderView* render_view); 79 void SyncNavigationState(RenderView* render_view);
80 80
81 // Sets the focus of the render view depending on |enable|. This only overrides 81 // Sets the focus of the render view depending on |enable|. This only overrides
82 // the state of the renderer, and does not sync the focus to the browser 82 // the state of the renderer, and does not sync the focus to the browser
83 // process. 83 // process.
84 void SetFocusAndActivate(RenderView* render_view, bool enable); 84 void SetFocusAndActivate(RenderView* render_view, bool enable);
85 85
86 // Changes the window rect of the given render view. 86 // Changes the window rect of the given render view.
87 void ForceResizeRenderView(RenderView* render_view, 87 void ForceResizeRenderView(RenderView* render_view,
88 const blink::WebSize& new_size); 88 const blink::WebSize& new_size);
89 89
(...skipping 20 matching lines...) Expand all
110 // Provides a text dump of the contents of the given page state. 110 // Provides a text dump of the contents of the given page state.
111 std::string DumpBackForwardList(std::vector<PageState>& page_state, 111 std::string DumpBackForwardList(std::vector<PageState>& page_state,
112 size_t current_index); 112 size_t current_index);
113 113
114 // Instantiates WebLayerImpl for TestPlugin. 114 // Instantiates WebLayerImpl for TestPlugin.
115 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer); 115 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer);
116 116
117 } // namespace content 117 } // namespace content
118 118
119 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 119 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698