| 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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // Invokes OnSetFocus and marks the widget as active depending on the value | 324 // Invokes OnSetFocus and marks the widget as active depending on the value |
| 325 // of |enable|. This is used for layout tests that need to control the focus | 325 // of |enable|. This is used for layout tests that need to control the focus |
| 326 // synchronously from the renderer. | 326 // synchronously from the renderer. |
| 327 void SetFocusAndActivateForTesting(bool enable); | 327 void SetFocusAndActivateForTesting(bool enable); |
| 328 | 328 |
| 329 // Change the device scale factor and force the compositor to resize. | 329 // Change the device scale factor and force the compositor to resize. |
| 330 void SetDeviceScaleFactorForTesting(float factor); | 330 void SetDeviceScaleFactorForTesting(float factor); |
| 331 | 331 |
| 332 // Change the device ICC color profile while running a layout test. | 332 // Change the device ICC color profile while running a layout test. |
| 333 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); | 333 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); |
| 334 virtual void ResetDeviceColorProfileForTesting() OVERRIDE; |
| 334 | 335 |
| 335 // Used to force the size of a window when running layout tests. | 336 // Used to force the size of a window when running layout tests. |
| 336 void ForceResizeForTesting(const gfx::Size& new_size); | 337 void ForceResizeForTesting(const gfx::Size& new_size); |
| 337 | 338 |
| 338 void UseSynchronousResizeModeForTesting(bool enable); | 339 void UseSynchronousResizeModeForTesting(bool enable); |
| 339 | 340 |
| 340 // Control autoresize mode. | 341 // Control autoresize mode. |
| 341 void EnableAutoResizeForTesting(const gfx::Size& min_size, | 342 void EnableAutoResizeForTesting(const gfx::Size& min_size, |
| 342 const gfx::Size& max_size); | 343 const gfx::Size& max_size); |
| 343 void DisableAutoResizeForTesting(const gfx::Size& new_size); | 344 void DisableAutoResizeForTesting(const gfx::Size& new_size); |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 // use the Observer interface to filter IPC messages and receive frame change | 1130 // use the Observer interface to filter IPC messages and receive frame change |
| 1130 // notifications. | 1131 // notifications. |
| 1131 // --------------------------------------------------------------------------- | 1132 // --------------------------------------------------------------------------- |
| 1132 | 1133 |
| 1133 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1134 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1134 }; | 1135 }; |
| 1135 | 1136 |
| 1136 } // namespace content | 1137 } // namespace content |
| 1137 | 1138 |
| 1138 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1139 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |