OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_TABS_TAB_STRIP_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ |
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 enum ContextMenuCommand { | 405 enum ContextMenuCommand { |
406 CommandFirst = 0, | 406 CommandFirst = 0, |
407 CommandNewTab, | 407 CommandNewTab, |
408 CommandReload, | 408 CommandReload, |
409 CommandDuplicate, | 409 CommandDuplicate, |
410 CommandCloseTab, | 410 CommandCloseTab, |
411 CommandCloseOtherTabs, | 411 CommandCloseOtherTabs, |
412 CommandCloseTabsToRight, | 412 CommandCloseTabsToRight, |
413 CommandRestoreTab, | 413 CommandRestoreTab, |
414 CommandTogglePinned, | 414 CommandTogglePinned, |
| 415 CommandToggleTabAudioMuted, |
415 CommandBookmarkAllTabs, | 416 CommandBookmarkAllTabs, |
416 CommandSelectByDomain, | 417 CommandSelectByDomain, |
417 CommandSelectByOpener, | 418 CommandSelectByOpener, |
418 CommandLast | 419 CommandLast |
419 }; | 420 }; |
420 | 421 |
421 // Returns true if the specified command is enabled. If |context_index| is | 422 // Returns true if the specified command is enabled. If |context_index| is |
422 // selected the response applies to all selected tabs. | 423 // selected the response applies to all selected tabs. |
423 bool IsContextMenuCommandEnabled(int context_index, | 424 bool IsContextMenuCommandEnabled(int context_index, |
424 ContextMenuCommand command_id) const; | 425 ContextMenuCommand command_id) const; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 | 576 |
576 // TODO(sky): remove this; used for debugging 291265. | 577 // TODO(sky): remove this; used for debugging 291265. |
577 bool in_notify_; | 578 bool in_notify_; |
578 | 579 |
579 base::WeakPtrFactory<TabStripModel> weak_factory_; | 580 base::WeakPtrFactory<TabStripModel> weak_factory_; |
580 | 581 |
581 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); | 582 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); |
582 }; | 583 }; |
583 | 584 |
584 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ | 585 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ |
OLD | NEW |