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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 SetAudioMuted(bool mute) = 0; |
| 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 Loading... |
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_ |
OLD | NEW |