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 | |
247 protected: | 244 protected: |
248 virtual ~TabStripModelDelegate() {} | 245 virtual ~TabStripModelDelegate() {} |
249 }; | 246 }; |
250 | 247 |
251 //////////////////////////////////////////////////////////////////////////////// | 248 //////////////////////////////////////////////////////////////////////////////// |
252 // | 249 // |
253 // TabStripModel | 250 // TabStripModel |
254 // | 251 // |
255 // A model & low level controller of a Browser Window tabstrip. Holds a vector | 252 // A model & low level controller of a Browser Window tabstrip. Holds a vector |
256 // of TabContents, and provides an API for adding, removing and shuffling | 253 // of TabContents, and provides an API for adding, removing and shuffling |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; | 813 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; |
817 TabStripModelObservers observers_; | 814 TabStripModelObservers observers_; |
818 | 815 |
819 // A scoped container for notification registries. | 816 // A scoped container for notification registries. |
820 NotificationRegistrar registrar_; | 817 NotificationRegistrar registrar_; |
821 | 818 |
822 DISALLOW_COPY_AND_ASSIGN(TabStripModel); | 819 DISALLOW_COPY_AND_ASSIGN(TabStripModel); |
823 }; | 820 }; |
824 | 821 |
825 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ | 822 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
OLD | NEW |