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 "base/prefs/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual void UpdateLoadingAnimations() OVERRIDE; | 64 virtual void UpdateLoadingAnimations() OVERRIDE; |
65 virtual int HasAvailableDragActions() const OVERRIDE; | 65 virtual int HasAvailableDragActions() const OVERRIDE; |
66 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; | 66 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; |
67 virtual void PerformDrop(bool drop_before, | 67 virtual void PerformDrop(bool drop_before, |
68 int index, | 68 int index, |
69 const GURL& url) OVERRIDE; | 69 const GURL& url) OVERRIDE; |
70 virtual bool IsCompatibleWith(TabStrip* other) const OVERRIDE; | 70 virtual bool IsCompatibleWith(TabStrip* other) const OVERRIDE; |
71 virtual void CreateNewTab() OVERRIDE; | 71 virtual void CreateNewTab() OVERRIDE; |
72 virtual void CreateNewTabWithLocation(const base::string16& loc) OVERRIDE; | 72 virtual void CreateNewTabWithLocation(const base::string16& loc) OVERRIDE; |
73 virtual bool IsIncognito() OVERRIDE; | 73 virtual bool IsIncognito() OVERRIDE; |
74 virtual void LayoutTypeMaybeChanged() OVERRIDE; | 74 virtual void StackedLayoutMaybeChanged() OVERRIDE; |
75 virtual void OnStartedDraggingTabs() OVERRIDE; | 75 virtual void OnStartedDraggingTabs() OVERRIDE; |
76 virtual void OnStoppedDraggingTabs() OVERRIDE; | 76 virtual void OnStoppedDraggingTabs() OVERRIDE; |
77 virtual void CheckFileSupported(const GURL& url) OVERRIDE; | 77 virtual void CheckFileSupported(const GURL& url) OVERRIDE; |
78 | 78 |
79 // TabStripModelObserver implementation: | 79 // TabStripModelObserver implementation: |
80 virtual void TabInsertedAt(content::WebContents* contents, | 80 virtual void TabInsertedAt(content::WebContents* contents, |
81 int model_index, | 81 int model_index, |
82 bool is_active) OVERRIDE; | 82 bool is_active) OVERRIDE; |
83 virtual void TabDetachedAt(content::WebContents* contents, | 83 virtual void TabDetachedAt(content::WebContents* contents, |
84 int model_index) OVERRIDE; | 84 int model_index) OVERRIDE; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 void StartHighlightTabsForCommand( | 130 void StartHighlightTabsForCommand( |
131 TabStripModel::ContextMenuCommand command_id, | 131 TabStripModel::ContextMenuCommand command_id, |
132 Tab* tab); | 132 Tab* tab); |
133 void StopHighlightTabsForCommand( | 133 void StopHighlightTabsForCommand( |
134 TabStripModel::ContextMenuCommand command_id, | 134 TabStripModel::ContextMenuCommand command_id, |
135 Tab* tab); | 135 Tab* tab); |
136 | 136 |
137 // Adds a tab. | 137 // Adds a tab. |
138 void AddTab(content::WebContents* contents, int index, bool is_active); | 138 void AddTab(content::WebContents* contents, int index, bool is_active); |
139 | 139 |
140 // Resets the tabstrips layout type from prefs. | 140 // Resets the tabstrips stacked layout (true or false) from prefs. |
141 void UpdateLayoutType(); | 141 void UpdateStackedLayout(); |
142 | 142 |
143 // Notifies the tabstrip whether |url| is supported once a MIME type request | 143 // Notifies the tabstrip whether |url| is supported once a MIME type request |
144 // has completed. | 144 // has completed. |
145 void OnFindURLMimeTypeCompleted(const GURL& url, | 145 void OnFindURLMimeTypeCompleted(const GURL& url, |
146 const std::string& mime_type); | 146 const std::string& mime_type); |
147 | 147 |
148 TabStripModel* model_; | 148 TabStripModel* model_; |
149 | 149 |
150 TabStrip* tabstrip_; | 150 TabStrip* tabstrip_; |
151 | 151 |
(...skipping 12 matching lines...) Expand all Loading... |
164 scoped_ptr<ImmersiveRevealedLock> immersive_reveal_lock_; | 164 scoped_ptr<ImmersiveRevealedLock> immersive_reveal_lock_; |
165 | 165 |
166 PrefChangeRegistrar local_pref_registrar_; | 166 PrefChangeRegistrar local_pref_registrar_; |
167 | 167 |
168 base::WeakPtrFactory<BrowserTabStripController> weak_ptr_factory_; | 168 base::WeakPtrFactory<BrowserTabStripController> weak_ptr_factory_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); | 170 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); |
171 }; | 171 }; |
172 | 172 |
173 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 173 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |