summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_widget_host_view.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-11-25 19:40:10 +0000
committerBen Murdoch <benm@google.com>2010-12-03 13:52:53 +0000
commit4a5e2dc747d50c653511c68ccb2cfbfb740bd5a7 (patch)
tree938665d93a11fe7a6d0124e3c1e020d1f9d3f947 /chrome/browser/renderer_host/render_widget_host_view.h
parent7c627d87728a355737862918d144f98f69406954 (diff)
downloadexternal_chromium-4a5e2dc747d50c653511c68ccb2cfbfb740bd5a7.zip
external_chromium-4a5e2dc747d50c653511c68ccb2cfbfb740bd5a7.tar.gz
external_chromium-4a5e2dc747d50c653511c68ccb2cfbfb740bd5a7.tar.bz2
Merge Chromium at r66597: Initial merge by git.
Change-Id: I9639f8a997f90ec219573aa22a49f5dbde78cc7b
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host_view.h')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view.h12
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);
};