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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 // capturer that provides a non-empty |capture_size| will override the value | 350 // capturer that provides a non-empty |capture_size| will override the value |
351 // returned by GetPreferredSize() until all captures have ended. | 351 // returned by GetPreferredSize() until all captures have ended. |
352 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; | 352 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; |
353 virtual void DecrementCapturerCount() = 0; | 353 virtual void DecrementCapturerCount() = 0; |
354 virtual int GetCapturerCount() const = 0; | 354 virtual int GetCapturerCount() const = 0; |
355 | 355 |
356 // Indicates/Sets whether all audio output from this WebContents is muted. | 356 // Indicates/Sets whether all audio output from this WebContents is muted. |
357 virtual bool IsAudioMuted() const = 0; | 357 virtual bool IsAudioMuted() const = 0; |
358 virtual void SetAudioMuted(bool mute) = 0; | 358 virtual void SetAudioMuted(bool mute) = 0; |
359 | 359 |
| 360 // Indicates/Sets wheter a WebContents is connected to a Bluetooth Device. |
| 361 virtual bool IsBluetoothDeviceConnected() const = 0; |
| 362 virtual void SetBluetoothDeviceConnected(bool connected) = 0; |
| 363 |
360 // Indicates whether this tab should be considered crashed. The setter will | 364 // Indicates whether this tab should be considered crashed. The setter will |
361 // also notify the delegate when the flag is changed. | 365 // also notify the delegate when the flag is changed. |
362 virtual bool IsCrashed() const = 0; | 366 virtual bool IsCrashed() const = 0; |
363 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; | 367 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; |
364 | 368 |
365 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 369 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
366 virtual int GetCrashedErrorCode() const = 0; | 370 virtual int GetCrashedErrorCode() const = 0; |
367 | 371 |
368 // Whether the tab is in the process of being destroyed. | 372 // Whether the tab is in the process of being destroyed. |
369 virtual bool IsBeingDestroyed() const = 0; | 373 virtual bool IsBeingDestroyed() const = 0; |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 | 718 |
715 private: | 719 private: |
716 // This interface should only be implemented inside content. | 720 // This interface should only be implemented inside content. |
717 friend class WebContentsImpl; | 721 friend class WebContentsImpl; |
718 WebContents() {} | 722 WebContents() {} |
719 }; | 723 }; |
720 | 724 |
721 } // namespace content | 725 } // namespace content |
722 | 726 |
723 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 727 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |