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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 // Returns true if any of the tabs can be closed. | 235 // Returns true if any of the tabs can be closed. |
236 virtual bool CanCloseTab() const; | 236 virtual bool CanCloseTab() const; |
237 | 237 |
238 // Returns true if the vertical tabstrip presentation should be used. | 238 // Returns true if the vertical tabstrip presentation should be used. |
239 virtual bool UseVerticalTabs() const = 0; | 239 virtual bool UseVerticalTabs() const = 0; |
240 | 240 |
241 // Toggles the use of the vertical tabstrip. | 241 // Toggles the use of the vertical tabstrip. |
242 virtual void ToggleUseVerticalTabs() = 0; | 242 virtual void ToggleUseVerticalTabs() = 0; |
243 | 243 |
| 244 // Returns true if the tab strip can use large icons. |
| 245 virtual bool LargeIconsPermitted() const = 0; |
| 246 |
244 protected: | 247 protected: |
245 virtual ~TabStripModelDelegate() {} | 248 virtual ~TabStripModelDelegate() {} |
246 }; | 249 }; |
247 | 250 |
248 //////////////////////////////////////////////////////////////////////////////// | 251 //////////////////////////////////////////////////////////////////////////////// |
249 // | 252 // |
250 // TabStripModel | 253 // TabStripModel |
251 // | 254 // |
252 // A model & low level controller of a Browser Window tabstrip. Holds a vector | 255 // A model & low level controller of a Browser Window tabstrip. Holds a vector |
253 // of TabContents, and provides an API for adding, removing and shuffling | 256 // of TabContents, and provides an API for adding, removing and shuffling |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; | 816 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; |
814 TabStripModelObservers observers_; | 817 TabStripModelObservers observers_; |
815 | 818 |
816 // A scoped container for notification registries. | 819 // A scoped container for notification registries. |
817 NotificationRegistrar registrar_; | 820 NotificationRegistrar registrar_; |
818 | 821 |
819 DISALLOW_COPY_AND_ASSIGN(TabStripModel); | 822 DISALLOW_COPY_AND_ASSIGN(TabStripModel); |
820 }; | 823 }; |
821 | 824 |
822 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ | 825 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
OLD | NEW |