| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 void SetFocusAndActivate(RenderView* render_view, bool enable); | 122 void SetFocusAndActivate(RenderView* render_view, bool enable); |
| 123 | 123 |
| 124 // Changes the window rect of the given render view. | 124 // Changes the window rect of the given render view. |
| 125 void ForceResizeRenderView(RenderView* render_view, | 125 void ForceResizeRenderView(RenderView* render_view, |
| 126 const blink::WebSize& new_size); | 126 const blink::WebSize& new_size); |
| 127 | 127 |
| 128 // Set the device scale factor and force the compositor to resize. | 128 // Set the device scale factor and force the compositor to resize. |
| 129 void SetDeviceScaleFactor(RenderView* render_view, float factor); | 129 void SetDeviceScaleFactor(RenderView* render_view, float factor); |
| 130 | 130 |
| 131 // Get the window to viewport scale. | 131 // Get the window to viewport scale. |
| 132 float GetWindowToViewportScale(RenderView* render_view); | 132 float GetWindowToViewportScale(RenderFrame* render_frame); |
| 133 | 133 |
| 134 // Get the ICC profile for a given name string. This is not in the ICCProfile | 134 // Get the ICC profile for a given name string. This is not in the ICCProfile |
| 135 // class to avoid bloating the shipping build. | 135 // class to avoid bloating the shipping build. |
| 136 gfx::ICCProfile GetTestingICCProfile(const std::string& name); | 136 gfx::ICCProfile GetTestingICCProfile(const std::string& name); |
| 137 | 137 |
| 138 // Set the device color profile associated with the profile |name|. | 138 // Set the device color profile associated with the profile |name|. |
| 139 void SetDeviceColorProfile( | 139 void SetDeviceColorProfile( |
| 140 RenderView* render_view, const gfx::ICCProfile& icc_profile); | 140 RenderView* render_view, const gfx::ICCProfile& icc_profile); |
| 141 | 141 |
| 142 // Sets the scan duration to 0. | 142 // Sets the scan duration to 0. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 159 // Provides a text dump of the contents of the given page state. | 159 // Provides a text dump of the contents of the given page state. |
| 160 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 160 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
| 161 size_t current_index); | 161 size_t current_index); |
| 162 | 162 |
| 163 // Run all pending idle tasks immediately, and then invoke callback. | 163 // Run all pending idle tasks immediately, and then invoke callback. |
| 164 void SchedulerRunIdleTasks(const base::Closure& callback); | 164 void SchedulerRunIdleTasks(const base::Closure& callback); |
| 165 | 165 |
| 166 } // namespace content | 166 } // namespace content |
| 167 | 167 |
| 168 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 168 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |