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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 unsigned GetLocalSessionHistoryLengthForTesting() const; | 347 unsigned GetLocalSessionHistoryLengthForTesting() const; |
348 | 348 |
349 // Invokes OnSetFocus and marks the widget as active depending on the value | 349 // Invokes OnSetFocus and marks the widget as active depending on the value |
350 // of |enable|. This is used for layout tests that need to control the focus | 350 // of |enable|. This is used for layout tests that need to control the focus |
351 // synchronously from the renderer. | 351 // synchronously from the renderer. |
352 void SetFocusAndActivateForTesting(bool enable); | 352 void SetFocusAndActivateForTesting(bool enable); |
353 | 353 |
354 // Change the device scale factor and force the compositor to resize. | 354 // Change the device scale factor and force the compositor to resize. |
355 void SetDeviceScaleFactorForTesting(float factor); | 355 void SetDeviceScaleFactorForTesting(float factor); |
356 | 356 |
357 // Change screen orientation and force the compositor to resize. | |
358 void SetScreenOrientationForTesting( | |
359 const blink::WebScreenOrientationType& orientation); | |
360 | |
361 // Change the device ICC color profile while running a layout test. | 357 // Change the device ICC color profile while running a layout test. |
362 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); | 358 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); |
363 | 359 |
364 // Used to force the size of a window when running layout tests. | 360 // Used to force the size of a window when running layout tests. |
365 void ForceResizeForTesting(const gfx::Size& new_size); | 361 void ForceResizeForTesting(const gfx::Size& new_size); |
366 | 362 |
367 void UseSynchronousResizeModeForTesting(bool enable); | 363 void UseSynchronousResizeModeForTesting(bool enable); |
368 | 364 |
369 // Control autoresize mode. | 365 // Control autoresize mode. |
370 void EnableAutoResizeForTesting(const gfx::Size& min_size, | 366 void EnableAutoResizeForTesting(const gfx::Size& min_size, |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 // use the Observer interface to filter IPC messages and receive frame change | 1173 // use the Observer interface to filter IPC messages and receive frame change |
1178 // notifications. | 1174 // notifications. |
1179 // --------------------------------------------------------------------------- | 1175 // --------------------------------------------------------------------------- |
1180 | 1176 |
1181 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1177 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1182 }; | 1178 }; |
1183 | 1179 |
1184 } // namespace content | 1180 } // namespace content |
1185 | 1181 |
1186 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1182 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |