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

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

Issue 1848663002: bluetooth: Remove indicator only when there are no more devices connected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Ref count connections Created 4 years, 8 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // Indicates whether the WebContents is being captured (e.g., for screenshots 346 // Indicates whether the WebContents is being captured (e.g., for screenshots
347 // or mirroring). Increment calls must be balanced with an equivalent number 347 // or mirroring). Increment calls must be balanced with an equivalent number
348 // of decrement calls. |capture_size| specifies the capturer's video 348 // of decrement calls. |capture_size| specifies the capturer's video
349 // resolution, but can be empty to mean "unspecified." The first screen 349 // resolution, but can be empty to mean "unspecified." The first screen
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 whether the WebContents is connected to a Bluetooth Device.
357 // Increment calls must be balanced with an equivalent number of
358 // decrement calls.
359 virtual void IncrementBluetoothConnectedDeviceCount() = 0;
360 virtual void DecrementBluetoothConnectedDeviceCount() = 0;
361 virtual bool IsConnectedToBluetoothDevice() const = 0;
362
356 // Indicates/Sets whether all audio output from this WebContents is muted. 363 // Indicates/Sets whether all audio output from this WebContents is muted.
357 virtual bool IsAudioMuted() const = 0; 364 virtual bool IsAudioMuted() const = 0;
358 virtual void SetAudioMuted(bool mute) = 0; 365 virtual void SetAudioMuted(bool mute) = 0;
359 366
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 367
364 // Indicates whether this tab should be considered crashed. The setter will 368 // Indicates whether this tab should be considered crashed. The setter will
365 // also notify the delegate when the flag is changed. 369 // also notify the delegate when the flag is changed.
366 virtual bool IsCrashed() const = 0; 370 virtual bool IsCrashed() const = 0;
367 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; 371 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0;
368 372
369 virtual base::TerminationStatus GetCrashedStatus() const = 0; 373 virtual base::TerminationStatus GetCrashedStatus() const = 0;
370 virtual int GetCrashedErrorCode() const = 0; 374 virtual int GetCrashedErrorCode() const = 0;
371 375
372 // Whether the tab is in the process of being destroyed. 376 // Whether the tab is in the process of being destroyed.
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 722
719 private: 723 private:
720 // This interface should only be implemented inside content. 724 // This interface should only be implemented inside content.
721 friend class WebContentsImpl; 725 friend class WebContentsImpl;
722 WebContents() {} 726 WebContents() {}
723 }; 727 };
724 728
725 } // namespace content 729 } // namespace content
726 730
727 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 731 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698