| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
| 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ | 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
| 7 | 7 |
| 8 #include "base/gfx/point.h" | 8 #include "base/gfx/point.h" |
| 9 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
| 10 #include "chrome/browser/views/tabs/tab.h" | 10 #include "chrome/browser/views/tabs/tab.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void TabInsertedAt(TabContents* contents, | 118 virtual void TabInsertedAt(TabContents* contents, |
| 119 int index, | 119 int index, |
| 120 bool foreground); | 120 bool foreground); |
| 121 virtual void TabDetachedAt(TabContents* contents, int index); | 121 virtual void TabDetachedAt(TabContents* contents, int index); |
| 122 virtual void TabSelectedAt(TabContents* old_contents, | 122 virtual void TabSelectedAt(TabContents* old_contents, |
| 123 TabContents* contents, | 123 TabContents* contents, |
| 124 int index, | 124 int index, |
| 125 bool user_gesture); | 125 bool user_gesture); |
| 126 virtual void TabMoved(TabContents* contents, int from_index, int to_index); | 126 virtual void TabMoved(TabContents* contents, int from_index, int to_index); |
| 127 virtual void TabChangedAt(TabContents* contents, int index); | 127 virtual void TabChangedAt(TabContents* contents, int index); |
| 128 virtual void TabClosingAt(TabContents* contents, int index); |
| 128 | 129 |
| 129 // Tab::Delegate implementation: | 130 // Tab::Delegate implementation: |
| 130 virtual bool IsTabSelected(const Tab* tab) const; | 131 virtual bool IsTabSelected(const Tab* tab) const; |
| 131 virtual void SelectTab(Tab* tab); | 132 virtual void SelectTab(Tab* tab); |
| 132 virtual void CloseTab(Tab* tab); | 133 virtual void CloseTab(Tab* tab); |
| 133 virtual bool IsCommandEnabledForTab( | 134 virtual bool IsCommandEnabledForTab( |
| 134 TabStripModel::ContextMenuCommand command_id, const Tab* tab) const; | 135 TabStripModel::ContextMenuCommand command_id, const Tab* tab) const; |
| 135 virtual void ExecuteCommandForTab( | 136 virtual void ExecuteCommandForTab( |
| 136 TabStripModel::ContextMenuCommand command_id, Tab* tab); | 137 TabStripModel::ContextMenuCommand command_id, Tab* tab); |
| 137 virtual void StartHighlightTabsForCommand( | 138 virtual void StartHighlightTabsForCommand( |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 std::vector<TabData> tab_data_; | 355 std::vector<TabData> tab_data_; |
| 355 | 356 |
| 356 // The currently running animation. | 357 // The currently running animation. |
| 357 scoped_ptr<TabAnimation> active_animation_; | 358 scoped_ptr<TabAnimation> active_animation_; |
| 358 | 359 |
| 359 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); | 360 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); |
| 360 }; | 361 }; |
| 361 | 362 |
| 362 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ | 363 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
| 363 | 364 |
| OLD | NEW |