Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Unified Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_widget_host_view.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view.h (revision 66034)
+++ chrome/browser/renderer_host/render_widget_host_view.h (working copy)
@@ -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 @@
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 @@
// 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);
};

Powered by Google App Engine
This is Rietveld 408576698