Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host.h |
| diff --git a/content/browser/renderer_host/render_widget_host.h b/content/browser/renderer_host/render_widget_host.h |
| index ffd3c70e060ff242f1516e5bf25a6dfdb2c225af..42cb6b597d931989154b17a3d71980531dce1fe5 100644 |
| --- a/content/browser/renderer_host/render_widget_host.h |
| +++ b/content/browser/renderer_host/render_widget_host.h |
| @@ -496,6 +496,9 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener, |
| virtual void NotifyRendererUnresponsive() {} |
| virtual void NotifyRendererResponsive() {} |
| + // Called when auto-size resulted in the render size changing. |
| + virtual void OnRenderSizeChanged(const gfx::Size& size) {} |
| + |
| // --------------------------------------------------------------------------- |
| // RenderViewHost overrides this method to impose further restrictions on when |
| @@ -510,6 +513,10 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener, |
| // RenderViewHost overrides this method to report when in fullscreen mode. |
| virtual bool IsFullscreen() const; |
| + // Indicates if the render widget host should track the render widget's size |
| + // as opposed to visa versa. |
| + void SetShouldAutoSize(bool enable); |
|
darin (slow to review)
2011/12/02 05:48:24
elsewhere, you say "auto-resize", here you say "au
|
| + |
| protected: |
| // true if a renderer has once been valid. We use this flag to display a sad |
| // tab only when we lose our renderer and not if a paint occurs during |
| @@ -674,6 +681,10 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener, |
| // hand is updated when the resize message is sent. |
| gfx::Rect in_flight_reserved_rect_; |
| + // True if the render widget host should track the render widget's size as |
| + // opposed to visa versa. |
| + bool should_auto_size_; |
| + |
| // True if a mouse move event was sent to the render view and we are waiting |
| // for a corresponding ViewHostMsg_HandleInputEvent_ACK message. |
| bool mouse_move_pending_; |