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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip_controller.h

Issue 10213011: Attempt 3 at a better touch tabstrip. There is still a bunch to do, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Tab::GetTouchModeMinimumSize Created 8 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_STRIP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 class BaseTab; 9 class BaseTab;
10 class GURL; 10 class GURL;
(...skipping 16 matching lines...) Expand all
27 // Returns the number of tabs in the model. 27 // Returns the number of tabs in the model.
28 virtual int GetCount() const = 0; 28 virtual int GetCount() const = 0;
29 29
30 // Returns true if |index| is a valid model index. 30 // Returns true if |index| is a valid model index.
31 virtual bool IsValidIndex(int index) const = 0; 31 virtual bool IsValidIndex(int index) const = 0;
32 32
33 // Returns true if the tab at |index| is the active tab. The active tab is the 33 // Returns true if the tab at |index| is the active tab. The active tab is the
34 // one whose content is shown. 34 // one whose content is shown.
35 virtual bool IsActiveTab(int index) const = 0; 35 virtual bool IsActiveTab(int index) const = 0;
36 36
37 // Returns the index of the active tab.
38 virtual int GetActiveIndex() const = 0;
39
37 // Returns true if the selected index is selected. 40 // Returns true if the selected index is selected.
38 virtual bool IsTabSelected(int index) const = 0; 41 virtual bool IsTabSelected(int index) const = 0;
39 42
40 // Returns true if the selected index is pinned. 43 // Returns true if the selected index is pinned.
41 virtual bool IsTabPinned(int index) const = 0; 44 virtual bool IsTabPinned(int index) const = 0;
42 45
43 // Returns true if the selected index is closeable. 46 // Returns true if the selected index is closeable.
44 virtual bool IsTabCloseable(int index) const = 0; 47 virtual bool IsTabCloseable(int index) const = 0;
45 48
46 // Returns true if the selected index is the new tab page. 49 // Returns true if the selected index is the new tab page.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 91
89 // Informs that an active tab is selected when already active (ie - clicked 92 // Informs that an active tab is selected when already active (ie - clicked
90 // when already active/foreground). 93 // when already active/foreground).
91 virtual void ClickActiveTab(int index) = 0; 94 virtual void ClickActiveTab(int index) = 0;
92 95
93 // Returns true if the tab strip is in an incognito window. 96 // Returns true if the tab strip is in an incognito window.
94 virtual bool IsIncognito() = 0; 97 virtual bool IsIncognito() = 0;
95 }; 98 };
96 99
97 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 100 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/tabs/tab_strip_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698