| 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 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 309 // Indicates/Sets whether all audio output from this WebContents is muted. |
| 310 virtual bool IsAudioMuted() const = 0; | 310 virtual bool IsAudioMuted() const = 0; |
| 311 virtual void SetAudioMuted(bool mute) = 0; | 311 virtual void SetAudioMuted(bool muted, const std::string& cause) = 0; |
| 312 |
| 313 // Get source (initial, user, capture, extensionid) for the tab's muted state |
| 314 virtual const std::string& GetAudioMutedCause() const = 0; |
| 312 | 315 |
| 313 // Indicates whether this tab should be considered crashed. The setter will | 316 // Indicates whether this tab should be considered crashed. The setter will |
| 314 // also notify the delegate when the flag is changed. | 317 // also notify the delegate when the flag is changed. |
| 315 virtual bool IsCrashed() const = 0; | 318 virtual bool IsCrashed() const = 0; |
| 316 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; | 319 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; |
| 317 | 320 |
| 318 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 321 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
| 319 | 322 |
| 320 // Whether the tab is in the process of being destroyed. | 323 // Whether the tab is in the process of being destroyed. |
| 321 virtual bool IsBeingDestroyed() const = 0; | 324 virtual bool IsBeingDestroyed() const = 0; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 607 |
| 605 private: | 608 private: |
| 606 // This interface should only be implemented inside content. | 609 // This interface should only be implemented inside content. |
| 607 friend class WebContentsImpl; | 610 friend class WebContentsImpl; |
| 608 WebContents() {} | 611 WebContents() {} |
| 609 }; | 612 }; |
| 610 | 613 |
| 611 } // namespace content | 614 } // namespace content |
| 612 | 615 |
| 613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 616 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |