OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 enum ContextMenuCommand { | 413 enum ContextMenuCommand { |
414 CommandFirst = 0, | 414 CommandFirst = 0, |
415 CommandNewTab, | 415 CommandNewTab, |
416 CommandReload, | 416 CommandReload, |
417 CommandDuplicate, | 417 CommandDuplicate, |
418 CommandCloseTab, | 418 CommandCloseTab, |
419 CommandCloseOtherTabs, | 419 CommandCloseOtherTabs, |
420 CommandCloseTabsToRight, | 420 CommandCloseTabsToRight, |
421 CommandCloseTabsOpenedBy, | 421 CommandCloseTabsOpenedBy, |
422 CommandRestoreTab, | 422 CommandRestoreTab, |
| 423 CommandTaskManager, |
423 CommandLast | 424 CommandLast |
424 }; | 425 }; |
425 | 426 |
426 // Returns true if the specified command is enabled. | 427 // Returns true if the specified command is enabled. |
427 bool IsContextMenuCommandEnabled(int context_index, | 428 bool IsContextMenuCommandEnabled(int context_index, |
428 ContextMenuCommand command_id) const; | 429 ContextMenuCommand command_id) const; |
429 | 430 |
430 // Performs the action associated with the specified command for the given | 431 // Performs the action associated with the specified command for the given |
431 // TabStripModel index |context_index|. | 432 // TabStripModel index |context_index|. |
432 void ExecuteContextMenuCommand(int context_index, | 433 void ExecuteContextMenuCommand(int context_index, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; | 573 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; |
573 TabStripModelObservers observers_; | 574 TabStripModelObservers observers_; |
574 | 575 |
575 // A scoped container for notification registries. | 576 // A scoped container for notification registries. |
576 NotificationRegistrar registrar_; | 577 NotificationRegistrar registrar_; |
577 | 578 |
578 DISALLOW_COPY_AND_ASSIGN(TabStripModel); | 579 DISALLOW_COPY_AND_ASSIGN(TabStripModel); |
579 }; | 580 }; |
580 | 581 |
581 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ | 582 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
OLD | NEW |