| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/api/prefs/pref_change_registrar.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 virtual void TabBlockedStateChanged(TabContents* contents, | 102 virtual void TabBlockedStateChanged(TabContents* contents, |
| 103 int model_index) OVERRIDE; | 103 int model_index) OVERRIDE; |
| 104 | 104 |
| 105 // chrome::search::SearchModelObserver implementation: | 105 // chrome::search::SearchModelObserver implementation: |
| 106 virtual void ModeChanged(const chrome::search::Mode& old_mode, | 106 virtual void ModeChanged(const chrome::search::Mode& old_mode, |
| 107 const chrome::search::Mode& new_mode) OVERRIDE; | 107 const chrome::search::Mode& new_mode) OVERRIDE; |
| 108 | 108 |
| 109 // chrome::search::ToolbarSearchAnimatorObserver implementation: | 109 // chrome::search::ToolbarSearchAnimatorObserver implementation: |
| 110 virtual void OnToolbarBackgroundAnimatorProgressed() OVERRIDE; | 110 virtual void OnToolbarBackgroundAnimatorProgressed() OVERRIDE; |
| 111 virtual void OnToolbarBackgroundAnimatorCanceled( | 111 virtual void OnToolbarBackgroundAnimatorCanceled( |
| 112 TabContents* tab_contents) OVERRIDE; | 112 content::WebContents* web_contents) OVERRIDE; |
| 113 virtual void OnToolbarSeparatorChanged() OVERRIDE {} | 113 virtual void OnToolbarSeparatorChanged() OVERRIDE {} |
| 114 | 114 |
| 115 // content::NotificationObserver implementation: | 115 // content::NotificationObserver implementation: |
| 116 virtual void Observe(int type, | 116 virtual void Observe(int type, |
| 117 const content::NotificationSource& source, | 117 const content::NotificationSource& source, |
| 118 const content::NotificationDetails& details) OVERRIDE; | 118 const content::NotificationDetails& details) OVERRIDE; |
| 119 | 119 |
| 120 protected: | 120 protected: |
| 121 // The context in which SetTabRendererDataFromModel is being called. | 121 // The context in which SetTabRendererDataFromModel is being called. |
| 122 enum TabStatus { | 122 enum TabStatus { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 133 Profile* profile() const { return model_->profile(); } | 133 Profile* profile() const { return model_->profile(); } |
| 134 | 134 |
| 135 const TabStrip* tabstrip() const { return tabstrip_; } | 135 const TabStrip* tabstrip() const { return tabstrip_; } |
| 136 | 136 |
| 137 const Browser* browser() const { return browser_; } | 137 const Browser* browser() const { return browser_; } |
| 138 | 138 |
| 139 private: | 139 private: |
| 140 class TabContextMenuContents; | 140 class TabContextMenuContents; |
| 141 | 141 |
| 142 // Invokes tabstrip_->SetTabData. | 142 // Invokes tabstrip_->SetTabData. |
| 143 void SetTabDataAt(TabContents* contents, int model_index); | 143 void SetTabDataAt(content::WebContents* web_contents, int model_index); |
| 144 | 144 |
| 145 void StartHighlightTabsForCommand( | 145 void StartHighlightTabsForCommand( |
| 146 TabStripModel::ContextMenuCommand command_id, | 146 TabStripModel::ContextMenuCommand command_id, |
| 147 BaseTab* tab); | 147 BaseTab* tab); |
| 148 void StopHighlightTabsForCommand( | 148 void StopHighlightTabsForCommand( |
| 149 TabStripModel::ContextMenuCommand command_id, | 149 TabStripModel::ContextMenuCommand command_id, |
| 150 BaseTab* tab); | 150 BaseTab* tab); |
| 151 | 151 |
| 152 // Adds a tab. | 152 // Adds a tab. |
| 153 void AddTab(TabContents* contents, int index, bool is_active); | 153 void AddTab(TabContents* contents, int index, bool is_active); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 167 | 167 |
| 168 // Helper for performing tab selection as a result of dragging over a tab. | 168 // Helper for performing tab selection as a result of dragging over a tab. |
| 169 HoverTabSelector hover_tab_selector_; | 169 HoverTabSelector hover_tab_selector_; |
| 170 | 170 |
| 171 PrefChangeRegistrar local_pref_registrar_; | 171 PrefChangeRegistrar local_pref_registrar_; |
| 172 | 172 |
| 173 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); | 173 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 176 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |