| 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_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 Loading... |
| 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 |
| 49 // Executes the specified command for the specified Tab. | 53 // Executes the specified command for the specified Tab. |
| 50 virtual void ExecuteCommandForTab( | 54 virtual void ExecuteCommandForTab( |
| 51 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; | 55 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; |
| 52 | 56 |
| 53 // Starts/Stops highlighting the tabs that will be affected by the | 57 // Starts/Stops highlighting the tabs that will be affected by the |
| 54 // specified command for the specified Tab. | 58 // specified command for the specified Tab. |
| 55 virtual void StartHighlightTabsForCommand( | 59 virtual void StartHighlightTabsForCommand( |
| 56 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; | 60 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; |
| 57 virtual void StopHighlightTabsForCommand( | 61 virtual void StopHighlightTabsForCommand( |
| 58 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; | 62 TabStripModel::ContextMenuCommand command_id, Tab* tab) = 0; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool closing_; | 127 bool closing_; |
| 124 | 128 |
| 125 // If non-null it means we're showing a menu for the tab. | 129 // If non-null it means we're showing a menu for the tab. |
| 126 class TabContextMenuContents; | 130 class TabContextMenuContents; |
| 127 scoped_ptr<TabContextMenuContents> context_menu_contents_; | 131 scoped_ptr<TabContextMenuContents> context_menu_contents_; |
| 128 | 132 |
| 129 DISALLOW_COPY_AND_ASSIGN(Tab); | 133 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 130 }; | 134 }; |
| 131 | 135 |
| 132 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ | 136 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ |
| OLD | NEW |