| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void SetFocusAndActivate(RenderView* render_view, bool enable); | 118 void SetFocusAndActivate(RenderView* render_view, bool enable); |
| 119 | 119 |
| 120 // Changes the window rect of the given render view. | 120 // Changes the window rect of the given render view. |
| 121 void ForceResizeRenderView(RenderView* render_view, | 121 void ForceResizeRenderView(RenderView* render_view, |
| 122 const blink::WebSize& new_size); | 122 const blink::WebSize& new_size); |
| 123 | 123 |
| 124 // Set the device scale factor and force the compositor to resize. | 124 // Set the device scale factor and force the compositor to resize. |
| 125 void SetDeviceScaleFactor(RenderView* render_view, float factor); | 125 void SetDeviceScaleFactor(RenderView* render_view, float factor); |
| 126 | 126 |
| 127 // Get the window to viewport scale. | 127 // Get the window to viewport scale. |
| 128 float GetWindowToViewportScale(RenderView* render_view); | 128 float GetWindowToViewportScale(RenderFrame* render_frame); |
| 129 | 129 |
| 130 // Set the device color profile associated with the profile |name|. | 130 // Set the device color profile associated with the profile |name|. |
| 131 void SetDeviceColorProfile(RenderView* render_view, const std::string& name); | 131 void SetDeviceColorProfile(RenderView* render_view, const std::string& name); |
| 132 | 132 |
| 133 // Sets the scan duration to 0. | 133 // Sets the scan duration to 0. |
| 134 void SetTestBluetoothScanDuration(); | 134 void SetTestBluetoothScanDuration(); |
| 135 | 135 |
| 136 // Enables or disables synchronous resize mode. When enabled, all window-sizing | 136 // Enables or disables synchronous resize mode. When enabled, all window-sizing |
| 137 // machinery is short-circuited inside the renderer. This mode is necessary for | 137 // machinery is short-circuited inside the renderer. This mode is necessary for |
| 138 // some tests that were written before browsers had multi-process architecture | 138 // some tests that were written before browsers had multi-process architecture |
| (...skipping 11 matching lines...) Expand all Loading... |
| 150 // Provides a text dump of the contents of the given page state. | 150 // Provides a text dump of the contents of the given page state. |
| 151 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 151 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
| 152 size_t current_index); | 152 size_t current_index); |
| 153 | 153 |
| 154 // Run all pending idle tasks immediately, and then invoke callback. | 154 // Run all pending idle tasks immediately, and then invoke callback. |
| 155 void SchedulerRunIdleTasks(const base::Closure& callback); | 155 void SchedulerRunIdleTasks(const base::Closure& callback); |
| 156 | 156 |
| 157 } // namespace content | 157 } // namespace content |
| 158 | 158 |
| 159 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 159 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |