Bug 1723050 - Part 14: Replace typedef by using in dom/html/ r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D121312
This commit is contained in:
Kagami Sascha Rosylight
2021-08-09 13:37:27 +00:00
parent 6db90c1374
commit e826dafcc0
4 changed files with 18 additions and 18 deletions

View File

@@ -42,10 +42,10 @@
// Define to output information on decoding and painting framerate
/* #define DEBUG_FRAME_RATE 1 */
typedef uint16_t nsMediaNetworkState;
typedef uint16_t nsMediaReadyState;
typedef uint32_t SuspendTypes;
typedef uint32_t AudibleChangedReasons;
using nsMediaNetworkState = uint16_t;
using nsMediaReadyState = uint16_t;
using SuspendTypes = uint32_t;
using AudibleChangedReasons = uint32_t;
class nsIStreamListener;
@@ -114,12 +114,12 @@ class HTMLMediaElement : public nsGenericHTMLElement,
public nsStubMutationObserver,
public TelemetryProbesReporterOwner {
public:
typedef mozilla::TimeStamp TimeStamp;
typedef mozilla::layers::ImageContainer ImageContainer;
typedef mozilla::VideoFrameContainer VideoFrameContainer;
typedef mozilla::MediaResource MediaResource;
typedef mozilla::MediaDecoderOwner MediaDecoderOwner;
typedef mozilla::MetadataTags MetadataTags;
using TimeStamp = mozilla::TimeStamp;
using ImageContainer = mozilla::layers::ImageContainer;
using VideoFrameContainer = mozilla::VideoFrameContainer;
using MediaResource = mozilla::MediaResource;
using MediaDecoderOwner = mozilla::MediaDecoderOwner;
using MetadataTags = mozilla::MetadataTags;
// Helper struct to keep track of the MediaStreams returned by
// mozCaptureStream(). For each OutputMediaStream, dom::MediaTracks get