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

Side by Side Diff: chrome/browser/views/tabs/browser_tab_strip_controller.h

Issue 3056003: Attemp 2 at: (Closed)
Patch Set: Fix chromeos breakage Created 10 years, 5 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
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_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_
6 #define CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ 6 #define CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "chrome/browser/tabs/tab_strip_model.h" 9 #include "chrome/browser/tabs/tab_strip_model.h"
10 #include "chrome/browser/views/tabs/tab_strip_controller.h" 10 #include "chrome/browser/views/tabs/tab_strip_controller.h"
(...skipping 17 matching lines...) Expand all
28 28
29 TabStripModel* model() const { return model_; } 29 TabStripModel* model() const { return model_; }
30 30
31 bool IsCommandEnabledForTab(TabStripModel::ContextMenuCommand command_id, 31 bool IsCommandEnabledForTab(TabStripModel::ContextMenuCommand command_id,
32 BaseTab* tab) const; 32 BaseTab* tab) const;
33 bool IsCommandCheckedForTab(TabStripModel::ContextMenuCommand command_id, 33 bool IsCommandCheckedForTab(TabStripModel::ContextMenuCommand command_id,
34 BaseTab* tab) const; 34 BaseTab* tab) const;
35 void ExecuteCommandForTab(TabStripModel::ContextMenuCommand command_id, 35 void ExecuteCommandForTab(TabStripModel::ContextMenuCommand command_id,
36 BaseTab* tab); 36 BaseTab* tab);
37 bool IsTabPinned(BaseTab* tab); 37 bool IsTabPinned(BaseTab* tab);
38 bool IsAppTab(BaseTab* tab);
39 bool IsToolbarVisible(BaseTab* tab);
40 38
41 // TabStripController implementation: 39 // TabStripController implementation:
42 virtual int GetCount() const; 40 virtual int GetCount() const;
43 virtual bool IsValidIndex(int model_index) const; 41 virtual bool IsValidIndex(int model_index) const;
44 virtual int GetSelectedIndex() const; 42 virtual int GetSelectedIndex() const;
45 virtual bool IsTabSelected(int model_index) const; 43 virtual bool IsTabSelected(int model_index) const;
46 virtual bool IsTabPinned(int model_index) const; 44 virtual bool IsTabPinned(int model_index) const;
47 virtual bool IsTabCloseable(int model_index) const; 45 virtual bool IsTabCloseable(int model_index) const;
48 virtual bool IsNewTabPage(int model_index) const; 46 virtual bool IsNewTabPage(int model_index) const;
49 virtual void SelectTab(int model_index); 47 virtual void SelectTab(int model_index);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // If non-NULL it means we're showing a menu for the tab. 106 // If non-NULL it means we're showing a menu for the tab.
109 scoped_ptr<TabContextMenuContents> context_menu_contents_; 107 scoped_ptr<TabContextMenuContents> context_menu_contents_;
110 108
111 NotificationRegistrar notification_registrar_; 109 NotificationRegistrar notification_registrar_;
112 110
113 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); 111 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController);
114 }; 112 };
115 113
116 #endif // CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ 114 #endif // CHROME_BROWSER_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_
117 115
OLDNEW
« no previous file with comments | « chrome/browser/views/location_bar/location_bar_view.cc ('k') | chrome/browser/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698