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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const gfx::Point& p) OVERRIDE; | 58 const gfx::Point& p) OVERRIDE; |
59 virtual void UpdateLoadingAnimations() OVERRIDE; | 59 virtual void UpdateLoadingAnimations() OVERRIDE; |
60 virtual int HasAvailableDragActions() const OVERRIDE; | 60 virtual int HasAvailableDragActions() const OVERRIDE; |
61 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; | 61 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; |
62 virtual void PerformDrop(bool drop_before, | 62 virtual void PerformDrop(bool drop_before, |
63 int index, | 63 int index, |
64 const GURL& url) OVERRIDE; | 64 const GURL& url) OVERRIDE; |
65 virtual bool IsCompatibleWith(BaseTabStrip* other) const OVERRIDE; | 65 virtual bool IsCompatibleWith(BaseTabStrip* other) const OVERRIDE; |
66 virtual void CreateNewTab() OVERRIDE; | 66 virtual void CreateNewTab() OVERRIDE; |
67 virtual void ClickActiveTab(int index) OVERRIDE; | 67 virtual void ClickActiveTab(int index) OVERRIDE; |
| 68 virtual bool SizeTabButtonToTopOfTabStrip() OVERRIDE; |
68 | 69 |
69 // TabStripModelObserver implementation: | 70 // TabStripModelObserver implementation: |
70 virtual void TabInsertedAt(TabContentsWrapper* contents, | 71 virtual void TabInsertedAt(TabContentsWrapper* contents, |
71 int model_index, | 72 int model_index, |
72 bool active) OVERRIDE; | 73 bool active) OVERRIDE; |
73 virtual void TabDetachedAt(TabContentsWrapper* contents, | 74 virtual void TabDetachedAt(TabContentsWrapper* contents, |
74 int model_index) OVERRIDE; | 75 int model_index) OVERRIDE; |
75 virtual void TabSelectionChanged( | 76 virtual void TabSelectionChanged( |
76 const TabStripSelectionModel& old_model) OVERRIDE; | 77 const TabStripSelectionModel& old_model) OVERRIDE; |
77 virtual void TabMoved(TabContentsWrapper* contents, | 78 virtual void TabMoved(TabContentsWrapper* contents, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 141 |
141 NotificationRegistrar notification_registrar_; | 142 NotificationRegistrar notification_registrar_; |
142 | 143 |
143 // Helper for performing tab selection as a result of dragging over a tab. | 144 // Helper for performing tab selection as a result of dragging over a tab. |
144 HoverTabSelector hover_tab_selector_; | 145 HoverTabSelector hover_tab_selector_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); | 147 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); |
147 }; | 148 }; |
148 | 149 |
149 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 150 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |