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

Unified Diff: chrome/browser/views/tabs/browser_tab_strip.h

Issue 155242: Add temporary TabStripWrapper interface that is implemented by both TabStrip ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 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: chrome/browser/views/tabs/browser_tab_strip.h
===================================================================
--- chrome/browser/views/tabs/browser_tab_strip.h (revision 20183)
+++ chrome/browser/views/tabs/browser_tab_strip.h (working copy)
@@ -14,7 +14,8 @@
// one.
class BrowserTabStrip : public TabStrip2,
public TabStrip2Model,
- public TabStripModelObserver {
+ public TabStripModelObserver,
+ public TabStripWrapper {
public:
explicit BrowserTabStrip(TabStripModel* model);
virtual ~BrowserTabStrip();
@@ -49,6 +50,20 @@
const gfx::Rect& window_bounds,
const gfx::Rect& tab_bounds);
+ // Overridden from TabStripWrapper:
+ virtual int GetPreferredHeight();
+ virtual bool IsAnimating() const;
+ virtual void SetBackgroundOffset(gfx::Point offset);
+ virtual bool PointIsWithinWindowCaption(const gfx::Point& point);
+ virtual bool IsDragSessionActive() const;
+ virtual bool IsCompatibleWith(TabStripWrapper* other) const;
+ virtual void SetDraggedTabBounds(int tab_index,
+ const gfx::Rect& tab_bounds);
+ virtual void UpdateLoadingAnimations();
+ virtual views::View* GetView();
+ virtual BrowserTabStrip* AsBrowserTabStrip();
+ virtual TabStrip* AsTabStrip();
+
private:
TabStripModel* model_;
« no previous file with comments | « chrome/browser/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/views/tabs/browser_tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698