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

Side by Side Diff: content/public/browser/web_contents.h

Issue 586303004: WebContentsAudioMuter: Mute all audio output from a WebContentsImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // Indicates whether the WebContents is being captured (e.g., for screenshots 299 // Indicates whether the WebContents is being captured (e.g., for screenshots
300 // or mirroring). Increment calls must be balanced with an equivalent number 300 // or mirroring). Increment calls must be balanced with an equivalent number
301 // of decrement calls. |capture_size| specifies the capturer's video 301 // of decrement calls. |capture_size| specifies the capturer's video
302 // resolution, but can be empty to mean "unspecified." The first screen 302 // resolution, but can be empty to mean "unspecified." The first screen
303 // capturer that provides a non-empty |capture_size| will override the value 303 // capturer that provides a non-empty |capture_size| will override the value
304 // returned by GetPreferredSize() until all captures have ended. 304 // returned by GetPreferredSize() until all captures have ended.
305 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; 305 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0;
306 virtual void DecrementCapturerCount() = 0; 306 virtual void DecrementCapturerCount() = 0;
307 virtual int GetCapturerCount() const = 0; 307 virtual int GetCapturerCount() const = 0;
308 308
309 // Indicates/Sets whether all audio output from this WebContents is muted.
310 virtual bool IsAudioMuted() const = 0;
311 virtual void ToggleAudioMute(bool mute) = 0;
Avi (use Gerrit) 2014/09/21 00:20:00 "Toggle" means to switch between two settings (wit
miu 2014/09/21 02:33:33 Done.
312
309 // Indicates whether this tab should be considered crashed. The setter will 313 // Indicates whether this tab should be considered crashed. The setter will
310 // also notify the delegate when the flag is changed. 314 // also notify the delegate when the flag is changed.
311 virtual bool IsCrashed() const = 0; 315 virtual bool IsCrashed() const = 0;
312 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; 316 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0;
313 317
314 virtual base::TerminationStatus GetCrashedStatus() const = 0; 318 virtual base::TerminationStatus GetCrashedStatus() const = 0;
315 319
316 // Whether the tab is in the process of being destroyed. 320 // Whether the tab is in the process of being destroyed.
317 virtual bool IsBeingDestroyed() const = 0; 321 virtual bool IsBeingDestroyed() const = 0;
318 322
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 604
601 private: 605 private:
602 // This interface should only be implemented inside content. 606 // This interface should only be implemented inside content.
603 friend class WebContentsImpl; 607 friend class WebContentsImpl;
604 WebContents() {} 608 WebContents() {}
605 }; 609 };
606 610
607 } // namespace content 611 } // namespace content
608 612
609 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« content/browser/web_contents/web_contents_impl.h ('K') | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698