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

Unified Diff: chrome/browser/views/tab_contents/tab_contents_container.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/views/tab_contents/tab_contents_container.h
===================================================================
--- chrome/browser/views/tab_contents/tab_contents_container.h (revision 64775)
+++ chrome/browser/views/tab_contents/tab_contents_container.h (working copy)
@@ -13,11 +13,24 @@
class NativeTabContentsContainer;
class RenderViewHost;
+class RenderWidgetHostView;
class TabContents;
class TabContentsContainer : public views::View,
public NotificationObserver {
public:
+ // Interface to enquire reserved contents area.
+ class ReservedAreaDelegate {
+ public:
+ // Returns the rect in tab contents view coordinates where contents should
rohitrao (ping after 24h) 2010/11/12 18:45:19 This comment no longer applies. From the method n
Aleksey Shlyapnikov 2010/11/13 01:37:11 Done.
+ // not be rendered (to display the resize corner, sidebar mini tabs etc.),
+ // if any, otherwise an empty rect.
+ virtual void UpdateReservedContentsRect(
+ const TabContentsContainer* source) = 0;
+ protected:
+ virtual ~ReservedAreaDelegate() {}
+ };
+
TabContentsContainer();
virtual ~TabContentsContainer();
@@ -36,6 +49,10 @@
// so performance is better.
void SetFastResize(bool fast_resize);
+ void set_reserved_area_delegate(ReservedAreaDelegate* delegate) {
+ reserved_area_delegate_ = delegate;
+ }
+
// Overridden from NotificationObserver:
virtual void Observe(NotificationType type,
const NotificationSource& source,
@@ -65,6 +82,10 @@
// get notified.
void TabContentsDestroyed(TabContents* contents);
+ // Called when the RenderWidgetHostView of the hosted TabContents has changed.
+ void RenderWidgetHostViewChanged(RenderWidgetHostView* old_view,
+ RenderWidgetHostView* new_view);
+
// An instance of a NativeTabContentsContainer object that holds the native
// view handle associated with the attached TabContents.
NativeTabContentsContainer* native_container_;
@@ -75,6 +96,9 @@
// Handles registering for our notifications.
NotificationRegistrar registrar_;
+ // Delegate for enquiring reserved contents area. Not owned by us.
+ ReservedAreaDelegate* reserved_area_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(TabContentsContainer);
};

Powered by Google App Engine
This is Rietveld 408576698