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

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

Issue 591963002: Tab audio mute control (views UI), behind a switch (off by default). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + add about:flags experiment Created 6 years, 2 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/ui/tabs/tab_menu_model.cc ('k') | chrome/browser/ui/tabs/tab_strip_model.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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_menu_model.cc ('k') | chrome/browser/ui/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698