Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/browser/tabs/tab_strip_model.h

Issue 2819086: Removal of TabContentsDelegate::GetBrowser() interface method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.cc ('k') | chrome/browser/tabs/tab_strip_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698