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