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

Side by Side Diff: chrome/browser/tabs/tab_strip_model.h

Issue 119020: Add a context menu to the tab strip. It appears when you click in the (Closed)
Patch Set: comment cleanup Created 11 years, 6 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
« no previous file with comments | « chrome/browser/gtk/tabs/tab_strip_gtk.cc ('k') | no next file » | 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/tab_strip_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698