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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 TabContentsWrapper* new_contents, | 85 TabContentsWrapper* new_contents, |
86 int model_index) OVERRIDE; | 86 int model_index) OVERRIDE; |
87 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, | 87 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, |
88 int model_index) OVERRIDE; | 88 int model_index) OVERRIDE; |
89 virtual void TabMiniStateChanged(TabContentsWrapper* contents, | 89 virtual void TabMiniStateChanged(TabContentsWrapper* contents, |
90 int model_index) OVERRIDE; | 90 int model_index) OVERRIDE; |
91 virtual void TabBlockedStateChanged(TabContentsWrapper* contents, | 91 virtual void TabBlockedStateChanged(TabContentsWrapper* contents, |
92 int model_index) OVERRIDE; | 92 int model_index) OVERRIDE; |
93 | 93 |
94 // NotificationObserver implementation: | 94 // NotificationObserver implementation: |
95 virtual void Observe(NotificationType type, | 95 virtual void Observe(int type, |
96 const NotificationSource& source, | 96 const NotificationSource& source, |
97 const NotificationDetails& details) OVERRIDE; | 97 const NotificationDetails& details) OVERRIDE; |
98 | 98 |
99 protected: | 99 protected: |
100 // The context in which SetTabRendererDataFromModel is being called. | 100 // The context in which SetTabRendererDataFromModel is being called. |
101 enum TabStatus { | 101 enum TabStatus { |
102 NEW_TAB, | 102 NEW_TAB, |
103 EXISTING_TAB | 103 EXISTING_TAB |
104 }; | 104 }; |
105 | 105 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 NotificationRegistrar notification_registrar_; | 141 NotificationRegistrar notification_registrar_; |
142 | 142 |
143 // Helper for performing tab selection as a result of dragging over a tab. | 143 // Helper for performing tab selection as a result of dragging over a tab. |
144 HoverTabSelector hover_tab_selector_; | 144 HoverTabSelector hover_tab_selector_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); | 146 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); |
147 }; | 147 }; |
148 | 148 |
149 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 149 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |