diff options
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host_view.h')
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view.h b/chrome/browser/renderer_host/render_widget_host_view.h index d7fa9c3..1c8bb13 100644 --- a/chrome/browser/renderer_host/render_widget_host_view.h +++ b/chrome/browser/renderer_host/render_widget_host_view.h @@ -15,6 +15,7 @@ #include "app/surface/transport_dib.h" #include "gfx/native_widget_types.h" +#include "gfx/rect.h" #include "third_party/skia/include/core/SkBitmap.h" #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" @@ -260,6 +261,13 @@ class RenderWidgetHostView { const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { } + gfx::Rect reserved_contents_rect() const { + return reserved_rect_; + } + void set_reserved_contents_rect(const gfx::Rect& reserved_rect) { + reserved_rect_ = reserved_rect; + } + protected: // Interface class only, do not construct. RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} @@ -272,6 +280,10 @@ class RenderWidgetHostView { // horizontally. Can be null, in which case we fall back to painting white. SkBitmap background_; + // The current reserved area in view coordinates where contents should not be + // rendered to draw the resize corner, sidebar mini tabs etc. + gfx::Rect reserved_rect_; + private: DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); }; |