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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 unsigned GetLocalSessionHistoryLengthForTesting() const; | 369 unsigned GetLocalSessionHistoryLengthForTesting() const; |
370 | 370 |
371 // Invokes OnSetFocus and marks the widget as active depending on the value | 371 // Invokes OnSetFocus and marks the widget as active depending on the value |
372 // of |enable|. This is used for layout tests that need to control the focus | 372 // of |enable|. This is used for layout tests that need to control the focus |
373 // synchronously from the renderer. | 373 // synchronously from the renderer. |
374 void SetFocusAndActivateForTesting(bool enable); | 374 void SetFocusAndActivateForTesting(bool enable); |
375 | 375 |
376 // Change the device scale factor and force the compositor to resize. | 376 // Change the device scale factor and force the compositor to resize. |
377 void SetDeviceScaleFactorForTesting(float factor); | 377 void SetDeviceScaleFactorForTesting(float factor); |
378 | 378 |
| 379 // Control autoresize mode. |
| 380 void EnableAutoResizeForTesting(const gfx::Size& min_size, |
| 381 const gfx::Size& max_size); |
| 382 void DisableAutoResizeForTesting(const gfx::Size& new_size); |
| 383 |
379 // IPC::Listener implementation ---------------------------------------------- | 384 // IPC::Listener implementation ---------------------------------------------- |
380 | 385 |
381 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 386 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
382 | 387 |
383 // WebKit::WebWidgetClient implementation ------------------------------------ | 388 // WebKit::WebWidgetClient implementation ------------------------------------ |
384 | 389 |
385 // Most methods are handled by RenderWidget. | 390 // Most methods are handled by RenderWidget. |
386 virtual void didFocus(); | 391 virtual void didFocus(); |
387 virtual void didBlur(); | 392 virtual void didBlur(); |
388 virtual void show(WebKit::WebNavigationPolicy policy); | 393 virtual void show(WebKit::WebNavigationPolicy policy); |
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 // use the Observer interface to filter IPC messages and receive frame change | 1534 // use the Observer interface to filter IPC messages and receive frame change |
1530 // notifications. | 1535 // notifications. |
1531 // --------------------------------------------------------------------------- | 1536 // --------------------------------------------------------------------------- |
1532 | 1537 |
1533 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1538 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1534 }; | 1539 }; |
1535 | 1540 |
1536 } // namespace content | 1541 } // namespace content |
1537 | 1542 |
1538 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1543 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |