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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // process. | 106 // process. |
107 void SetFocusAndActivate(RenderView* render_view, bool enable); | 107 void SetFocusAndActivate(RenderView* render_view, bool enable); |
108 | 108 |
109 // Changes the window rect of the given render view. | 109 // Changes the window rect of the given render view. |
110 void ForceResizeRenderView(RenderView* render_view, | 110 void ForceResizeRenderView(RenderView* render_view, |
111 const blink::WebSize& new_size); | 111 const blink::WebSize& new_size); |
112 | 112 |
113 // Set the device scale factor and force the compositor to resize. | 113 // Set the device scale factor and force the compositor to resize. |
114 void SetDeviceScaleFactor(RenderView* render_view, float factor); | 114 void SetDeviceScaleFactor(RenderView* render_view, float factor); |
115 | 115 |
| 116 // Get the window to viewport scale. |
| 117 float GetWindowToViewportScale(RenderView* render_view); |
| 118 |
116 // Set the device color profile associated with the profile |name|. | 119 // Set the device color profile associated with the profile |name|. |
117 void SetDeviceColorProfile(RenderView* render_view, const std::string& name); | 120 void SetDeviceColorProfile(RenderView* render_view, const std::string& name); |
118 | 121 |
119 // Change the bluetooth test adapter while running a layout test. | 122 // Change the bluetooth test adapter while running a layout test. |
120 void SetBluetoothAdapter(int render_process_id, | 123 void SetBluetoothAdapter(int render_process_id, |
121 scoped_refptr<device::BluetoothAdapter> adapter); | 124 scoped_refptr<device::BluetoothAdapter> adapter); |
122 | 125 |
123 // Enables or disables synchronous resize mode. When enabled, all window-sizing | 126 // Enables or disables synchronous resize mode. When enabled, all window-sizing |
124 // machinery is short-circuited inside the renderer. This mode is necessary for | 127 // machinery is short-circuited inside the renderer. This mode is necessary for |
125 // some tests that were written before browsers had multi-process architecture | 128 // some tests that were written before browsers had multi-process architecture |
(...skipping 11 matching lines...) Expand all Loading... |
137 // Provides a text dump of the contents of the given page state. | 140 // Provides a text dump of the contents of the given page state. |
138 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 141 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
139 size_t current_index); | 142 size_t current_index); |
140 | 143 |
141 // Run all pending idle tasks immediately, and then invoke callback. | 144 // Run all pending idle tasks immediately, and then invoke callback. |
142 void SchedulerRunIdleTasks(const base::Closure& callback); | 145 void SchedulerRunIdleTasks(const base::Closure& callback); |
143 | 146 |
144 } // namespace content | 147 } // namespace content |
145 | 148 |
146 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 149 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
OLD | NEW |