OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TABS_TAB_STRIP_MODEL_H_ | 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ | 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 // Returns true if any of the tabs can be closed. | 257 // Returns true if any of the tabs can be closed. |
258 virtual bool CanCloseTab() const; | 258 virtual bool CanCloseTab() const; |
259 | 259 |
260 // Returns true if the vertical tabstrip presentation should be used. | 260 // Returns true if the vertical tabstrip presentation should be used. |
261 virtual bool UseVerticalTabs() const = 0; | 261 virtual bool UseVerticalTabs() const = 0; |
262 | 262 |
263 // Toggles the use of the vertical tabstrip. | 263 // Toggles the use of the vertical tabstrip. |
264 virtual void ToggleUseVerticalTabs() = 0; | 264 virtual void ToggleUseVerticalTabs() = 0; |
265 | 265 |
| 266 // Returns true if the tab strip can use large icons. |
| 267 virtual bool LargeIconsPermitted() const = 0; |
| 268 |
266 protected: | 269 protected: |
267 virtual ~TabStripModelDelegate() {} | 270 virtual ~TabStripModelDelegate() {} |
268 }; | 271 }; |
269 | 272 |
270 //////////////////////////////////////////////////////////////////////////////// | 273 //////////////////////////////////////////////////////////////////////////////// |
271 // | 274 // |
272 // TabStripModel | 275 // TabStripModel |
273 // | 276 // |
274 // A model & low level controller of a Browser Window tabstrip. Holds a vector | 277 // A model & low level controller of a Browser Window tabstrip. Holds a vector |
275 // of TabContents, and provides an API for adding, removing and shuffling | 278 // of TabContents, and provides an API for adding, removing and shuffling |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; | 845 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; |
843 TabStripModelObservers observers_; | 846 TabStripModelObservers observers_; |
844 | 847 |
845 // A scoped container for notification registries. | 848 // A scoped container for notification registries. |
846 NotificationRegistrar registrar_; | 849 NotificationRegistrar registrar_; |
847 | 850 |
848 DISALLOW_COPY_AND_ASSIGN(TabStripModel); | 851 DISALLOW_COPY_AND_ASSIGN(TabStripModel); |
849 }; | 852 }; |
850 | 853 |
851 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ | 854 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
OLD | NEW |