OLD | NEW |
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 Loading... |
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 SyncNavigationState(RenderView* render_view); | 79 void ForcePageStateFlush(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 Loading... |
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_ |
OLD | NEW |