| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ |
| 6 #define CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/views/tabs/tab_strip_2.h" | 8 #include "chrome/browser/views/tabs/tab_strip_2.h" |
| 9 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // Overridden from TabStripModelObserver: | 31 // Overridden from TabStripModelObserver: |
| 32 virtual void TabInsertedAt(TabContents* contents, | 32 virtual void TabInsertedAt(TabContents* contents, |
| 33 int index, | 33 int index, |
| 34 bool foreground); | 34 bool foreground); |
| 35 virtual void TabDetachedAt(TabContents* contents, int index); | 35 virtual void TabDetachedAt(TabContents* contents, int index); |
| 36 virtual void TabSelectedAt(TabContents* old_contents, | 36 virtual void TabSelectedAt(TabContents* old_contents, |
| 37 TabContents* contents, | 37 TabContents* contents, |
| 38 int index, | 38 int index, |
| 39 bool user_gesture); | 39 bool user_gesture); |
| 40 virtual void TabMoved(TabContents* contents, int from_index, int to_index); | 40 virtual void TabMoved(TabContents* contents, int from_index, int to_index, |
| 41 bool pinned_state_changed); |
| 41 virtual void TabChangedAt(TabContents* contents, int index); | 42 virtual void TabChangedAt(TabContents* contents, int index); |
| 42 | 43 |
| 43 // Overridden from TabStrip2Model: | 44 // Overridden from TabStrip2Model: |
| 44 virtual string16 GetTitle(int index) const; | 45 virtual string16 GetTitle(int index) const; |
| 45 virtual SkBitmap GetIcon(int index) const; | 46 virtual SkBitmap GetIcon(int index) const; |
| 46 virtual bool IsSelected(int index) const; | 47 virtual bool IsSelected(int index) const; |
| 47 virtual bool ShouldShowIcon(int index) const; | 48 virtual bool ShouldShowIcon(int index) const; |
| 48 virtual bool IsLoading(int index) const; | 49 virtual bool IsLoading(int index) const; |
| 49 virtual bool IsCrashed(int index) const; | 50 virtual bool IsCrashed(int index) const; |
| 50 virtual bool IsIncognito(int index) const; | 51 virtual bool IsIncognito(int index) const; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 69 virtual BrowserTabStrip* AsBrowserTabStrip(); | 70 virtual BrowserTabStrip* AsBrowserTabStrip(); |
| 70 virtual TabStrip* AsTabStrip(); | 71 virtual TabStrip* AsTabStrip(); |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 TabStripModel* model_; | 74 TabStripModel* model_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(BrowserTabStrip); | 76 DISALLOW_COPY_AND_ASSIGN(BrowserTabStrip); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 #endif // #ifndef CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ | 79 #endif // #ifndef CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_H_ |
| OLD | NEW |