| 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. | 360 // Indicates whether any frame in the WebContents is connected to a Bluetooth |
| 361 virtual bool IsBluetoothDeviceConnected() const = 0; | 361 // Device. |
| 362 virtual void SetBluetoothDeviceConnected(bool connected) = 0; | 362 virtual bool IsConnectedToBluetoothDevice() const = 0; |
| 363 | 363 |
| 364 // Indicates whether this tab should be considered crashed. The setter will | 364 // Indicates whether this tab should be considered crashed. The setter will |
| 365 // also notify the delegate when the flag is changed. | 365 // also notify the delegate when the flag is changed. |
| 366 virtual bool IsCrashed() const = 0; | 366 virtual bool IsCrashed() const = 0; |
| 367 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; | 367 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; |
| 368 | 368 |
| 369 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 369 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
| 370 virtual int GetCrashedErrorCode() const = 0; | 370 virtual int GetCrashedErrorCode() const = 0; |
| 371 | 371 |
| 372 // Whether the tab is in the process of being destroyed. | 372 // Whether the tab is in the process of being destroyed. |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 | 718 |
| 719 private: | 719 private: |
| 720 // This interface should only be implemented inside content. | 720 // This interface should only be implemented inside content. |
| 721 friend class WebContentsImpl; | 721 friend class WebContentsImpl; |
| 722 WebContents() {} | 722 WebContents() {} |
| 723 }; | 723 }; |
| 724 | 724 |
| 725 } // namespace content | 725 } // namespace content |
| 726 | 726 |
| 727 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 727 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |