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

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

Issue 757033005: Make tab audible and muted states and cause available for an extension API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove mute->muted renames Created 5 years, 10 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
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_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_
7 7
8 #include <string>
9
8 class TabStripModel; 10 class TabStripModel;
9 11
10 namespace content { 12 namespace content {
11 class WebContents; 13 class WebContents;
12 } 14 }
13 15
14 namespace ui { 16 namespace ui {
15 class ListSelectionModel; 17 class ListSelectionModel;
16 } 18 }
17 19
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // prerendering swaps in a prerendered WebContents. 124 // prerendering swaps in a prerendered WebContents.
123 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 125 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
124 content::WebContents* old_contents, 126 content::WebContents* old_contents,
125 content::WebContents* new_contents, 127 content::WebContents* new_contents,
126 int index); 128 int index);
127 129
128 // Invoked when the pinned state of a tab changes. See note in 130 // Invoked when the pinned state of a tab changes. See note in
129 // TabMiniStateChanged as to how this relates to TabMiniStateChanged. 131 // TabMiniStateChanged as to how this relates to TabMiniStateChanged.
130 virtual void TabPinnedStateChanged(content::WebContents* contents, int index); 132 virtual void TabPinnedStateChanged(content::WebContents* contents, int index);
131 133
134 // Invoked when the audible or muted states change.
135 virtual void TabAudibleStateChanged(content::WebContents* contents,
sky 2015/02/02 15:43:06 I don't think this makes sense in the TabStripMode
136 bool audible);
137 virtual void TabMutedStateChanged(content::WebContents* contents,
138 bool muted,
139 const std::string& cause);
140
132 // Invoked if the mini state of a tab changes. 141 // Invoked if the mini state of a tab changes.
133 // NOTE: This is sent when the pinned state of a non-app tab changes and is 142 // NOTE: This is sent when the pinned state of a non-app tab changes and is
134 // sent in addition to TabPinnedStateChanged. UI code typically need not care 143 // sent in addition to TabPinnedStateChanged. UI code typically need not care
135 // about TabPinnedStateChanged, but instead this. 144 // about TabPinnedStateChanged, but instead this.
136 virtual void TabMiniStateChanged(content::WebContents* contents, int index); 145 virtual void TabMiniStateChanged(content::WebContents* contents, int index);
137 146
138 // Invoked when the blocked state of a tab changes. 147 // Invoked when the blocked state of a tab changes.
139 // NOTE: This is invoked when a tab becomes blocked/unblocked by a tab modal 148 // NOTE: This is invoked when a tab becomes blocked/unblocked by a tab modal
140 // window. 149 // window.
141 virtual void TabBlockedStateChanged(content::WebContents* contents, 150 virtual void TabBlockedStateChanged(content::WebContents* contents,
(...skipping 15 matching lines...) Expand all
157 166
158 // Sent when the tabstrip model is about to be deleted and any reference held 167 // Sent when the tabstrip model is about to be deleted and any reference held
159 // must be dropped. 168 // must be dropped.
160 virtual void TabStripModelDeleted(); 169 virtual void TabStripModelDeleted();
161 170
162 protected: 171 protected:
163 virtual ~TabStripModelObserver() {} 172 virtual ~TabStripModelObserver() {}
164 }; 173 };
165 174
166 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ 175 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model.cc ('k') | chrome/browser/ui/tabs/tab_strip_model_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698