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

Unified Diff: content/browser/renderer_host/render_widget_host.h

Issue 9265018: Change grow box computation back to a method on BrowserWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 11 months 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: 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 3bb7e3043480625d6b428c84d1bf05bebe99f3fe..43c19059a37ce4fefa4d7069870c895a51134678 100644
--- a/content/browser/renderer_host/render_widget_host.h
+++ b/content/browser/renderer_host/render_widget_host.h
@@ -26,7 +26,6 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
#include "ui/gfx/surface/transport_dib.h"
@@ -373,6 +372,10 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
// Cancels an ongoing composition.
void ImeCancelComposition();
+ // This is for derived classes to give us access to the resizer rect.
+ // And to also expose it to the RenderWidgetHostView.
+ virtual gfx::Rect GetRootWindowResizerRect() const;
+
// Makes an IPC call to tell webkit to replace the currently selected word
// or a word around the cursor.
void Replace(const string16& word);
@@ -676,10 +679,6 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
// The current size of the RenderWidget.
gfx::Size current_size_;
- // The current reserved area of the RenderWidget where contents should not be
- // rendered to draw the resize corner, sidebar mini tabs etc.
- gfx::Rect current_reserved_rect_;
-
// The size we last sent as requested size to the renderer. |current_size_|
// is only updated once the resize message has been ack'd. This on the other
// hand is updated when the resize message is sent. This is very similar to
@@ -687,11 +686,6 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
// or height zero, which is why we need this too.
gfx::Size in_flight_size_;
- // The reserved area we last sent to the renderer. |current_reserved_rect_|
- // is only updated once the resize message has been ack'd. This on the other
- // 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_resize_;
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698