OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/tabs/tab_strip_model.h" | 10 #include "chrome/browser/tabs/tab_strip_model.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual bool IsCompatibleWith(BaseTabStrip* other) const OVERRIDE; | 64 virtual bool IsCompatibleWith(BaseTabStrip* other) const OVERRIDE; |
65 virtual void CreateNewTab() OVERRIDE; | 65 virtual void CreateNewTab() OVERRIDE; |
66 virtual void ClickActiveTab(int index) OVERRIDE; | 66 virtual void ClickActiveTab(int index) OVERRIDE; |
67 | 67 |
68 // TabStripModelObserver implementation: | 68 // TabStripModelObserver implementation: |
69 virtual void TabInsertedAt(TabContentsWrapper* contents, | 69 virtual void TabInsertedAt(TabContentsWrapper* contents, |
70 int model_index, | 70 int model_index, |
71 bool active) OVERRIDE; | 71 bool active) OVERRIDE; |
72 virtual void TabDetachedAt(TabContentsWrapper* contents, | 72 virtual void TabDetachedAt(TabContentsWrapper* contents, |
73 int model_index) OVERRIDE; | 73 int model_index) OVERRIDE; |
74 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 74 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
75 TabContentsWrapper* contents, | 75 TabContentsWrapper* contents, |
76 int model_index, | 76 int model_index, |
77 bool user_gesture) OVERRIDE; | 77 bool user_gesture) OVERRIDE; |
78 virtual void TabMoved(TabContentsWrapper* contents, | 78 virtual void TabMoved(TabContentsWrapper* contents, |
79 int from_model_index, | 79 int from_model_index, |
80 int to_model_index) OVERRIDE; | 80 int to_model_index) OVERRIDE; |
81 virtual void TabChangedAt(TabContentsWrapper* contents, | 81 virtual void TabChangedAt(TabContentsWrapper* contents, |
82 int model_index, | 82 int model_index, |
83 TabChangeType change_type) OVERRIDE; | 83 TabChangeType change_type) OVERRIDE; |
84 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 84 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
85 TabContentsWrapper* old_contents, | 85 TabContentsWrapper* old_contents, |
86 TabContentsWrapper* new_contents, | 86 TabContentsWrapper* new_contents, |
87 int model_index) OVERRIDE; | 87 int model_index) OVERRIDE; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 NotificationRegistrar notification_registrar_; | 130 NotificationRegistrar notification_registrar_; |
131 | 131 |
132 // Helper for performing tab selection as a result of dragging over a tab. | 132 // Helper for performing tab selection as a result of dragging over a tab. |
133 HoverTabSelector hover_tab_selector_; | 133 HoverTabSelector hover_tab_selector_; |
134 | 134 |
135 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); | 135 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); |
136 }; | 136 }; |
137 | 137 |
138 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 138 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
139 | |
OLD | NEW |