| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void ShowContextMenuForTab(BaseTab* tab, | 56 virtual void ShowContextMenuForTab(BaseTab* tab, |
| 57 const gfx::Point& p) OVERRIDE; | 57 const gfx::Point& p) OVERRIDE; |
| 58 virtual void UpdateLoadingAnimations() OVERRIDE; | 58 virtual void UpdateLoadingAnimations() OVERRIDE; |
| 59 virtual int HasAvailableDragActions() const OVERRIDE; | 59 virtual int HasAvailableDragActions() const OVERRIDE; |
| 60 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; | 60 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; |
| 61 virtual void PerformDrop(bool drop_before, | 61 virtual void PerformDrop(bool drop_before, |
| 62 int index, | 62 int index, |
| 63 const GURL& url) OVERRIDE; | 63 const GURL& url) OVERRIDE; |
| 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 | 67 |
| 67 // TabStripModelObserver implementation: | 68 // TabStripModelObserver implementation: |
| 68 virtual void TabInsertedAt(TabContentsWrapper* contents, | 69 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| 69 int model_index, | 70 int model_index, |
| 70 bool active) OVERRIDE; | 71 bool active) OVERRIDE; |
| 71 virtual void TabDetachedAt(TabContentsWrapper* contents, | 72 virtual void TabDetachedAt(TabContentsWrapper* contents, |
| 72 int model_index) OVERRIDE; | 73 int model_index) OVERRIDE; |
| 73 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 74 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
| 74 TabContentsWrapper* contents, | 75 TabContentsWrapper* contents, |
| 75 int model_index, | 76 int model_index, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 NotificationRegistrar notification_registrar_; | 130 NotificationRegistrar notification_registrar_; |
| 130 | 131 |
| 131 // 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. |
| 132 HoverTabSelector hover_tab_selector_; | 133 HoverTabSelector hover_tab_selector_; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); | 135 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 138 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
| 138 | 139 |
| OLD | NEW |