diff options
Diffstat (limited to 'chrome/browser/views/tabs/browser_tab_strip.h')
-rw-r--r-- | chrome/browser/views/tabs/browser_tab_strip.h | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/chrome/browser/views/tabs/browser_tab_strip.h b/chrome/browser/views/tabs/browser_tab_strip.h deleted file mode 100644 index 69b5852..0000000 --- a/chrome/browser/views/tabs/browser_tab_strip.h +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this -// source code is governed by a BSD-style license that can be found in the -// LICENSE file. - -#ifndef CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ -#define CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ - -#include "chrome/browser/views/tabs/tab_strip_2.h" -#include "chrome/browser/tabs/tab_strip_model.h" - -// An object that translates model change notifications into manipulations to -// be applied to the TabStrip2 view, and feed data from Browser/TabContents -// specific types to the TabStrip2. -// -class BrowserTabStrip : public TabStrip2Model, - public TabStripModelObserver, - public TabStripWrapper { - public: - explicit BrowserTabStrip(TabStripModel* model); - virtual ~BrowserTabStrip(); - - // Detaches the tab at the specified index. - TabContents* DetachTab(int index); - - // Attaches the specified TabContents at the appropriate position given the - // mouse cursor at the specified screen position. - void AttachTab(TabContents* contents, const gfx::Point& screen_point, - const gfx::Rect& tab_screen_bounds); - - TabStrip2* view() const { return view_; } - - // Overridden from TabStripModelObserver: - virtual void TabInsertedAt(TabContents* contents, - int index, - bool foreground); - virtual void TabDetachedAt(TabContents* contents, int index); - virtual void TabSelectedAt(TabContents* old_contents, - TabContents* contents, - int index, - bool user_gesture); - virtual void TabMoved(TabContents* contents, int from_index, int to_index, - bool pinned_state_changed); - virtual void TabChangedAt(TabContents* contents, int index); - - // Overridden from TabStrip2Model: - virtual string16 GetTitle(int index) const; - virtual SkBitmap GetIcon(int index) const; - virtual bool IsSelected(int index) const; - virtual bool ShouldShowIcon(int index) const; - virtual bool IsLoading(int index) const; - virtual bool IsCrashed(int index) const; - virtual bool IsIncognito(int index) const; - virtual void SelectTabAt(int index); - virtual bool CanDragTabs() const; - virtual void MoveTabAt(int index, int to_index); - virtual void DetachTabAt(int index, - 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 IsPositionInWindowCaption(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_; - - TabStrip2* view_; - - DISALLOW_COPY_AND_ASSIGN(BrowserTabStrip); -}; - -#endif // CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ |