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

Side by Side Diff: content/public/browser/web_contents_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: Created 6 years 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 virtual void DidGetUserGesture() {} 246 virtual void DidGetUserGesture() {}
247 247
248 // This method is invoked when a RenderViewHost of this WebContents was 248 // This method is invoked when a RenderViewHost of this WebContents was
249 // configured to ignore UI events, and an UI event took place. 249 // configured to ignore UI events, and an UI event took place.
250 virtual void DidGetIgnoredUIEvent() {} 250 virtual void DidGetIgnoredUIEvent() {}
251 251
252 // These methods are invoked every time the WebContents changes visibility. 252 // These methods are invoked every time the WebContents changes visibility.
253 virtual void WasShown() {} 253 virtual void WasShown() {}
254 virtual void WasHidden() {} 254 virtual void WasHidden() {}
255 255
256 // These methods are invoked when there are changes related to sound.
257 virtual void TabAudible(bool isAudible) {};
258 virtual void TabMuted(bool isMuted, const std::string& cause) {};
259
256 // This methods is invoked when the title of the WebContents is set. If the 260 // This methods is invoked when the title of the WebContents is set. If the
257 // title was explicitly set, |explicit_set| is true, otherwise the title was 261 // title was explicitly set, |explicit_set| is true, otherwise the title was
258 // synthesized and |explicit_set| is false. 262 // synthesized and |explicit_set| is false.
259 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {} 263 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {}
260 264
261 virtual void AppCacheAccessed(const GURL& manifest_url, 265 virtual void AppCacheAccessed(const GURL& manifest_url,
262 bool blocked_by_policy) {} 266 bool blocked_by_policy) {}
263 267
264 // Notification that a plugin has crashed. 268 // Notification that a plugin has crashed.
265 // |plugin_pid| is the process ID identifying the plugin process. Note that 269 // |plugin_pid| is the process ID identifying the plugin process. Note that
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 void ResetWebContents(); 360 void ResetWebContents();
357 361
358 WebContentsImpl* web_contents_; 362 WebContentsImpl* web_contents_;
359 363
360 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 364 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
361 }; 365 };
362 366
363 } // namespace content 367 } // namespace content
364 368
365 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 369 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« content/browser/web_contents/web_contents_impl.cc ('K') | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698