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

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

Issue 1141005: Revert r42156, r42157, r42160. Allow dynamic switching in and out of sidetabs... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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
« no previous file with comments | « chrome/browser/views/tabs/side_tab_strip_model.h ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TAB_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_H_
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_ 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_
7 7
8 #include "chrome/browser/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/browser/views/tabs/tab_renderer.h" 9 #include "chrome/browser/views/tabs/tab_renderer.h"
10 10
(...skipping 28 matching lines...) Expand all
39 // Selects the specified Tab. 39 // Selects the specified Tab.
40 virtual void SelectTab(Tab* tab) = 0; 40 virtual void SelectTab(Tab* tab) = 0;
41 41
42 // Closes the specified Tab. 42 // Closes the specified Tab.
43 virtual void CloseTab(Tab* tab) = 0; 43 virtual void CloseTab(Tab* tab) = 0;
44 44
45 // Returns true if the specified command is enabled for the specified Tab. 45 // Returns true if the specified command is enabled for the specified Tab.
46 virtual bool IsCommandEnabledForTab( 46 virtual bool IsCommandEnabledForTab(
47 TabStripModel::ContextMenuCommand command_id, const Tab* tab) const = 0; 47 TabStripModel::ContextMenuCommand command_id, const Tab* tab) const = 0;
48 48
49 // Returns true if the specified command is checked for the specified Tab.
50 virtual bool IsCommandCheckedForTab(
51 TabStripModel::ContextMenuCommand command_id, const Tab* tab) const = 0;
52
53 // Executes the specified command for the specified Tab. 49 // Executes the specified command for the specified Tab.
54 virtual void ExecuteCommandForTab( 50 virtual void ExecuteCommandForTab(
55 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; 51 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0;
56 52
57 // Starts/Stops highlighting the tabs that will be affected by the 53 // Starts/Stops highlighting the tabs that will be affected by the
58 // specified command for the specified Tab. 54 // specified command for the specified Tab.
59 virtual void StartHighlightTabsForCommand( 55 virtual void StartHighlightTabsForCommand(
60 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; 56 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0;
61 virtual void StopHighlightTabsForCommand( 57 virtual void StopHighlightTabsForCommand(
62 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; 58 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool closing_; 123 bool closing_;
128 124
129 // If non-null it means we're showing a menu for the tab. 125 // If non-null it means we're showing a menu for the tab.
130 class TabContextMenuContents; 126 class TabContextMenuContents;
131 scoped_ptr<TabContextMenuContents> context_menu_contents_; 127 scoped_ptr<TabContextMenuContents> context_menu_contents_;
132 128
133 DISALLOW_COPY_AND_ASSIGN(Tab); 129 DISALLOW_COPY_AND_ASSIGN(Tab);
134 }; 130 };
135 131
136 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ 132 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/side_tab_strip_model.h ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698