mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
--HG-- extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
This commit is contained in:
parent
a6d74d5db4
commit
bc7cc3893c
@ -29,7 +29,7 @@ public:
|
|||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(MediaKeyMessageEvent, Event)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(MediaKeyMessageEvent, Event)
|
||||||
protected:
|
protected:
|
||||||
virtual ~MediaKeyMessageEvent();
|
virtual ~MediaKeyMessageEvent();
|
||||||
MediaKeyMessageEvent(EventTarget* aOwner);
|
explicit MediaKeyMessageEvent(EventTarget* aOwner);
|
||||||
|
|
||||||
JS::Heap<JSObject*> mMessage;
|
JS::Heap<JSObject*> mMessage;
|
||||||
nsString mDestinationURL;
|
nsString mDestinationURL;
|
||||||
|
@ -18,7 +18,7 @@ namespace dom {
|
|||||||
class MediaStreamAudioSourceNodeEngine : public AudioNodeEngine
|
class MediaStreamAudioSourceNodeEngine : public AudioNodeEngine
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MediaStreamAudioSourceNodeEngine(AudioNode* aNode)
|
explicit MediaStreamAudioSourceNodeEngine(AudioNode* aNode)
|
||||||
: AudioNodeEngine(aNode), mEnabled(false) {}
|
: AudioNodeEngine(aNode), mEnabled(false) {}
|
||||||
|
|
||||||
bool IsEnabled() const { return mEnabled; }
|
bool IsEnabled() const { return mEnabled; }
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
return activity.forget();
|
return activity.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
Activity(nsPIDOMWindow* aWindow);
|
explicit Activity(nsPIDOMWindow* aWindow);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
nsresult Initialize(nsPIDOMWindow* aWindow,
|
nsresult Initialize(nsPIDOMWindow* aWindow,
|
||||||
|
@ -18,7 +18,7 @@ namespace dom {
|
|||||||
class AnimationEffect MOZ_FINAL : public nsWrapperCache
|
class AnimationEffect MOZ_FINAL : public nsWrapperCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AnimationEffect(Animation* aAnimation)
|
explicit AnimationEffect(Animation* aAnimation)
|
||||||
: mAnimation(aAnimation)
|
: mAnimation(aAnimation)
|
||||||
{
|
{
|
||||||
SetIsDOMBinding();
|
SetIsDOMBinding();
|
||||||
|
@ -54,7 +54,7 @@ class ArchiveReaderEvent : public nsRunnable
|
|||||||
public:
|
public:
|
||||||
NS_DECL_NSIRUNNABLE
|
NS_DECL_NSIRUNNABLE
|
||||||
|
|
||||||
ArchiveReaderEvent(ArchiveReader* aArchiveReader);
|
explicit ArchiveReaderEvent(ArchiveReader* aArchiveReader);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~ArchiveReaderEvent();
|
virtual ~ArchiveReaderEvent();
|
||||||
|
@ -23,8 +23,8 @@ class ArchiveRequestEvent : public nsRunnable
|
|||||||
public:
|
public:
|
||||||
NS_DECL_NSIRUNNABLE
|
NS_DECL_NSIRUNNABLE
|
||||||
|
|
||||||
ArchiveRequestEvent(ArchiveRequest* request)
|
explicit ArchiveRequestEvent(ArchiveRequest* aRequest)
|
||||||
: mRequest(request)
|
: mRequest(aRequest)
|
||||||
{
|
{
|
||||||
MOZ_COUNT_CTOR(ArchiveRequestEvent);
|
MOZ_COUNT_CTOR(ArchiveRequestEvent);
|
||||||
}
|
}
|
||||||
|
@ -14544,7 +14544,7 @@ class CGEventClass(CGBindingImplClass):
|
|||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(${nativeType}, ${parentType})
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(${nativeType}, ${parentType})
|
||||||
protected:
|
protected:
|
||||||
virtual ~${nativeType}();
|
virtual ~${nativeType}();
|
||||||
${nativeType}(mozilla::dom::EventTarget* aOwner);
|
explicit ${nativeType}(mozilla::dom::EventTarget* aOwner);
|
||||||
|
|
||||||
""",
|
""",
|
||||||
nativeType=self.descriptor.nativeType.split('::')[-1],
|
nativeType=self.descriptor.nativeType.split('::')[-1],
|
||||||
|
@ -269,7 +269,7 @@ public:
|
|||||||
StackFrame)
|
StackFrame)
|
||||||
|
|
||||||
// aStack must not be null.
|
// aStack must not be null.
|
||||||
JSStackFrame(JS::Handle<JSObject*> aStack);
|
explicit JSStackFrame(JS::Handle<JSObject*> aStack);
|
||||||
|
|
||||||
static already_AddRefed<nsIStackFrame>
|
static already_AddRefed<nsIStackFrame>
|
||||||
CreateStack(JSContext* aCx, int32_t aMaxDepth = -1);
|
CreateStack(JSContext* aCx, int32_t aMaxDepth = -1);
|
||||||
|
@ -27,7 +27,7 @@ class TestCImplementedInterface2 : public nsISupports,
|
|||||||
public nsWrapperCache
|
public nsWrapperCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TestCImplementedInterface2(nsPIDOMWindow* aParent)
|
explicit TestCImplementedInterface2(nsPIDOMWindow* aParent)
|
||||||
{}
|
{}
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TestCImplementedInterface2)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TestCImplementedInterface2)
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
class RwLockAutoEnterRead
|
class RwLockAutoEnterRead
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RwLockAutoEnterRead(PRRWLock* aRwLock)
|
explicit RwLockAutoEnterRead(PRRWLock* aRwLock)
|
||||||
: mRwLock(aRwLock)
|
: mRwLock(aRwLock)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mRwLock);
|
MOZ_ASSERT(mRwLock);
|
||||||
@ -30,7 +30,7 @@ protected:
|
|||||||
class RwLockAutoEnterWrite
|
class RwLockAutoEnterWrite
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RwLockAutoEnterWrite(PRRWLock* aRwLock)
|
explicit RwLockAutoEnterWrite(PRRWLock* aRwLock)
|
||||||
: mRwLock(aRwLock)
|
: mRwLock(aRwLock)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mRwLock);
|
MOZ_ASSERT(mRwLock);
|
||||||
|
@ -30,7 +30,7 @@ class RecorderProfileManager;
|
|||||||
class CameraControlImpl : public ICameraControl
|
class CameraControlImpl : public ICameraControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CameraControlImpl(uint32_t aCameraId);
|
explicit CameraControlImpl(uint32_t aCameraId);
|
||||||
virtual void AddListener(CameraControlListener* aListener) MOZ_OVERRIDE;
|
virtual void AddListener(CameraControlListener* aListener) MOZ_OVERRIDE;
|
||||||
virtual void RemoveListener(CameraControlListener* aListener) MOZ_OVERRIDE;
|
virtual void RemoveListener(CameraControlListener* aListener) MOZ_OVERRIDE;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class CameraPreviewMediaStream : public MediaStream
|
|||||||
typedef mozilla::layers::Image Image;
|
typedef mozilla::layers::Image Image;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CameraPreviewMediaStream(DOMMediaStream* aWrapper);
|
explicit CameraPreviewMediaStream(DOMMediaStream* aWrapper);
|
||||||
|
|
||||||
virtual void AddAudioOutput(void* aKey) MOZ_OVERRIDE;
|
virtual void AddAudioOutput(void* aKey) MOZ_OVERRIDE;
|
||||||
virtual void SetAudioOutputVolume(void* aKey, float aVolume) MOZ_OVERRIDE;
|
virtual void SetAudioOutputVolume(void* aKey, float aVolume) MOZ_OVERRIDE;
|
||||||
|
@ -262,7 +262,7 @@ public:
|
|||||||
nsresult GetJsObject(JSContext* aCx, JSObject** aObject) const;
|
nsresult GetJsObject(JSContext* aCx, JSObject** aObject) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
RecorderProfileManager(uint32_t aCameraId);
|
explicit RecorderProfileManager(uint32_t aCameraId);
|
||||||
virtual ~RecorderProfileManager();
|
virtual ~RecorderProfileManager();
|
||||||
|
|
||||||
uint32_t mCameraId;
|
uint32_t mCameraId;
|
||||||
|
@ -40,7 +40,7 @@ public:
|
|||||||
// Great Renaming proposed in bug 983177.
|
// Great Renaming proposed in bug 983177.
|
||||||
static bool HasSupport(JSContext* aCx, JSObject* aGlobal);
|
static bool HasSupport(JSContext* aCx, JSObject* aGlobal);
|
||||||
|
|
||||||
CameraCapabilities(nsPIDOMWindow* aWindow);
|
explicit CameraCapabilities(nsPIDOMWindow* aWindow);
|
||||||
|
|
||||||
// Populate the camera capabilities interface from the specific
|
// Populate the camera capabilities interface from the specific
|
||||||
// camera control object.
|
// camera control object.
|
||||||
|
@ -81,7 +81,7 @@ public:
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIDOMEVENTLISTENER
|
NS_DECL_NSIDOMEVENTLISTENER
|
||||||
|
|
||||||
StartRecordingHelper(nsDOMCameraControl* aDOMCameraControl)
|
explicit StartRecordingHelper(nsDOMCameraControl* aDOMCameraControl)
|
||||||
: mDOMCameraControl(aDOMCameraControl)
|
: mDOMCameraControl(aDOMCameraControl)
|
||||||
{
|
{
|
||||||
MOZ_COUNT_CTOR(StartRecordingHelper);
|
MOZ_COUNT_CTOR(StartRecordingHelper);
|
||||||
|
@ -145,7 +145,7 @@ protected:
|
|||||||
NS_INLINE_DECL_REFCOUNTING(DOMCameraConfiguration)
|
NS_INLINE_DECL_REFCOUNTING(DOMCameraConfiguration)
|
||||||
|
|
||||||
DOMCameraConfiguration();
|
DOMCameraConfiguration();
|
||||||
DOMCameraConfiguration(const dom::CameraConfiguration& aConfiguration);
|
explicit DOMCameraConfiguration(const dom::CameraConfiguration& aConfiguration);
|
||||||
|
|
||||||
// Additional configuration options that aren't exposed to the DOM
|
// Additional configuration options that aren't exposed to the DOM
|
||||||
uint32_t mMaxFocusAreas;
|
uint32_t mMaxFocusAreas;
|
||||||
|
@ -31,7 +31,7 @@ DOMCameraControlListener::~DOMCameraControlListener()
|
|||||||
class DOMCameraControlListener::DOMCallback : public nsRunnable
|
class DOMCameraControlListener::DOMCallback : public nsRunnable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DOMCallback(nsMainThreadPtrHandle<nsDOMCameraControl> aDOMCameraControl)
|
explicit DOMCallback(nsMainThreadPtrHandle<nsDOMCameraControl> aDOMCameraControl)
|
||||||
: mDOMCameraControl(aDOMCameraControl)
|
: mDOMCameraControl(aDOMCameraControl)
|
||||||
{
|
{
|
||||||
MOZ_COUNT_CTOR(DOMCameraControlListener::DOMCallback);
|
MOZ_COUNT_CTOR(DOMCameraControlListener::DOMCallback);
|
||||||
@ -276,7 +276,7 @@ DOMCameraControlListener::OnShutter()
|
|||||||
class Callback : public DOMCallback
|
class Callback : public DOMCallback
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Callback(nsMainThreadPtrHandle<nsDOMCameraControl> aDOMCameraControl)
|
explicit Callback(nsMainThreadPtrHandle<nsDOMCameraControl> aDOMCameraControl)
|
||||||
: DOMCallback(aDOMCameraControl)
|
: DOMCallback(aDOMCameraControl)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ namespace mozilla {
|
|||||||
class FallbackCameraControl : public CameraControlImpl
|
class FallbackCameraControl : public CameraControlImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FallbackCameraControl(uint32_t aCameraId) : CameraControlImpl(aCameraId) { }
|
explicit FallbackCameraControl(uint32_t aCameraId) : CameraControlImpl(aCameraId) { }
|
||||||
|
|
||||||
virtual nsresult Set(uint32_t aKey, const nsAString& aValue) MOZ_OVERRIDE { return NS_ERROR_NOT_IMPLEMENTED; }
|
virtual nsresult Set(uint32_t aKey, const nsAString& aValue) MOZ_OVERRIDE { return NS_ERROR_NOT_IMPLEMENTED; }
|
||||||
virtual nsresult Get(uint32_t aKey, nsAString& aValue) MOZ_OVERRIDE { return NS_ERROR_NOT_IMPLEMENTED; }
|
virtual nsresult Get(uint32_t aKey, nsAString& aValue) MOZ_OVERRIDE { return NS_ERROR_NOT_IMPLEMENTED; }
|
||||||
|
@ -240,7 +240,7 @@ protected:
|
|||||||
class ICameraControlParameterSetAutoEnter
|
class ICameraControlParameterSetAutoEnter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ICameraControlParameterSetAutoEnter(ICameraControl* aCameraControl)
|
explicit ICameraControlParameterSetAutoEnter(ICameraControl* aCameraControl)
|
||||||
: mCameraControl(aCameraControl)
|
: mCameraControl(aCameraControl)
|
||||||
{
|
{
|
||||||
mCameraControl->BeginBatchParameterSet();
|
mCameraControl->BeginBatchParameterSet();
|
||||||
|
@ -35,7 +35,7 @@ struct ImageCacheEntryData {
|
|||||||
, mSourceSurface(aOther.mSourceSurface)
|
, mSourceSurface(aOther.mSourceSurface)
|
||||||
, mSize(aOther.mSize)
|
, mSize(aOther.mSize)
|
||||||
{}
|
{}
|
||||||
ImageCacheEntryData(const ImageCacheKey& aKey)
|
explicit ImageCacheEntryData(const ImageCacheKey& aKey)
|
||||||
: mImage(aKey.mImage)
|
: mImage(aKey.mImage)
|
||||||
, mILC(nullptr)
|
, mILC(nullptr)
|
||||||
, mCanvas(aKey.mCanvas)
|
, mCanvas(aKey.mCanvas)
|
||||||
@ -61,8 +61,8 @@ public:
|
|||||||
typedef ImageCacheKey KeyType;
|
typedef ImageCacheKey KeyType;
|
||||||
typedef const ImageCacheKey* KeyTypePointer;
|
typedef const ImageCacheKey* KeyTypePointer;
|
||||||
|
|
||||||
ImageCacheEntry(const KeyType *key) :
|
explicit ImageCacheEntry(const KeyType* aKey) :
|
||||||
mData(new ImageCacheEntryData(*key)) {}
|
mData(new ImageCacheEntryData(*aKey)) {}
|
||||||
ImageCacheEntry(const ImageCacheEntry &toCopy) :
|
ImageCacheEntry(const ImageCacheEntry &toCopy) :
|
||||||
mData(new ImageCacheEntryData(*toCopy.mData)) {}
|
mData(new ImageCacheEntryData(*toCopy.mData)) {}
|
||||||
~ImageCacheEntry() {}
|
~ImageCacheEntry() {}
|
||||||
@ -115,7 +115,7 @@ class ImageCacheObserver MOZ_FINAL : public nsIObserver
|
|||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
|
||||||
ImageCacheObserver(ImageCache* aImageCache)
|
explicit ImageCacheObserver(ImageCache* aImageCache)
|
||||||
: mImageCache(aImageCache)
|
: mImageCache(aImageCache)
|
||||||
{
|
{
|
||||||
RegisterMemoryPressureEvent();
|
RegisterMemoryPressureEvent();
|
||||||
|
@ -298,7 +298,7 @@ class AdjustedTarget
|
|||||||
public:
|
public:
|
||||||
typedef CanvasRenderingContext2D::ContextState ContextState;
|
typedef CanvasRenderingContext2D::ContextState ContextState;
|
||||||
|
|
||||||
AdjustedTarget(CanvasRenderingContext2D *ctx,
|
explicit AdjustedTarget(CanvasRenderingContext2D* ctx,
|
||||||
mgfx::Rect *aBounds = nullptr)
|
mgfx::Rect *aBounds = nullptr)
|
||||||
: mCtx(nullptr)
|
: mCtx(nullptr)
|
||||||
{
|
{
|
||||||
@ -438,7 +438,7 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(CanvasPattern, mContext)
|
|||||||
|
|
||||||
class CanvasRenderingContext2DUserData : public LayerUserData {
|
class CanvasRenderingContext2DUserData : public LayerUserData {
|
||||||
public:
|
public:
|
||||||
CanvasRenderingContext2DUserData(CanvasRenderingContext2D *aContext)
|
explicit CanvasRenderingContext2DUserData(CanvasRenderingContext2D *aContext)
|
||||||
: mContext(aContext)
|
: mContext(aContext)
|
||||||
{
|
{
|
||||||
aContext->mUserDatas.AppendElement(this);
|
aContext->mUserDatas.AppendElement(this);
|
||||||
|
@ -15,7 +15,7 @@ namespace dom {
|
|||||||
class TextMetrics MOZ_FINAL : public NonRefcountedDOMObject
|
class TextMetrics MOZ_FINAL : public NonRefcountedDOMObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TextMetrics(float w) : width(w)
|
explicit TextMetrics(float aValue) : width(aValue)
|
||||||
{
|
{
|
||||||
MOZ_COUNT_CTOR(TextMetrics);
|
MOZ_COUNT_CTOR(TextMetrics);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ class WebGLBuffer MOZ_FINAL
|
|||||||
, public WebGLContextBoundObject
|
, public WebGLContextBoundObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WebGLBuffer(WebGLContext *context);
|
explicit WebGLBuffer(WebGLContext* aContext);
|
||||||
|
|
||||||
void Delete();
|
void Delete();
|
||||||
|
|
||||||
|
@ -1129,7 +1129,7 @@ namespace mozilla {
|
|||||||
|
|
||||||
class WebGLContextUserData : public LayerUserData {
|
class WebGLContextUserData : public LayerUserData {
|
||||||
public:
|
public:
|
||||||
WebGLContextUserData(HTMLCanvasElement *aContent)
|
explicit WebGLContextUserData(HTMLCanvasElement* aContent)
|
||||||
: mContent(aContent)
|
: mContent(aContent)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -1510,8 +1510,8 @@ class UpdateContextLossStatusTask : public nsRunnable
|
|||||||
nsRefPtr<WebGLContext> mContext;
|
nsRefPtr<WebGLContext> mContext;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UpdateContextLossStatusTask(WebGLContext* context)
|
explicit UpdateContextLossStatusTask(WebGLContext* aContext)
|
||||||
: mContext(context)
|
: mContext(aContext)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class WebGLContextLossHandler
|
|||||||
public:
|
public:
|
||||||
MOZ_DECLARE_REFCOUNTED_TYPENAME(WebGLContextLossHandler)
|
MOZ_DECLARE_REFCOUNTED_TYPENAME(WebGLContextLossHandler)
|
||||||
|
|
||||||
WebGLContextLossHandler(WebGLContext* webgl);
|
explicit WebGLContextLossHandler(WebGLContext* aWebgl);
|
||||||
~WebGLContextLossHandler();
|
~WebGLContextLossHandler();
|
||||||
|
|
||||||
void RunTimer();
|
void RunTimer();
|
||||||
|
@ -36,7 +36,7 @@ struct GLComponents
|
|||||||
: mComponents(0)
|
: mComponents(0)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
GLComponents(GLenum format);
|
explicit GLComponents(GLenum aFormat);
|
||||||
|
|
||||||
// Returns true iff other has all (or more) of
|
// Returns true iff other has all (or more) of
|
||||||
// the components present in this GLComponents
|
// the components present in this GLComponents
|
||||||
|
@ -144,8 +144,8 @@ public:
|
|||||||
// Constructor. Takes a reference to the WebGLElementArrayCache that is to be
|
// Constructor. Takes a reference to the WebGLElementArrayCache that is to be
|
||||||
// the parent. Does not initialize the tree. Should be followed by a call
|
// the parent. Does not initialize the tree. Should be followed by a call
|
||||||
// to Update() to attempt initializing the tree.
|
// to Update() to attempt initializing the tree.
|
||||||
WebGLElementArrayCacheTree(WebGLElementArrayCache& p)
|
explicit WebGLElementArrayCacheTree(WebGLElementArrayCache& aValue)
|
||||||
: mParent(p)
|
: mParent(aValue)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class WebGLExtensionBase
|
|||||||
, public WebGLContextBoundObject
|
, public WebGLContextBoundObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WebGLExtensionBase(WebGLContext*);
|
explicit WebGLExtensionBase(WebGLContext* aValue);
|
||||||
|
|
||||||
WebGLContext *GetParentObject() const {
|
WebGLContext *GetParentObject() const {
|
||||||
return Context();
|
return Context();
|
||||||
@ -288,7 +288,7 @@ class WebGLExtensionVertexArray
|
|||||||
: public WebGLExtensionBase
|
: public WebGLExtensionBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WebGLExtensionVertexArray(WebGLContext*);
|
explicit WebGLExtensionVertexArray(WebGLContext* aValue);
|
||||||
virtual ~WebGLExtensionVertexArray();
|
virtual ~WebGLExtensionVertexArray();
|
||||||
|
|
||||||
already_AddRefed<WebGLVertexArray> CreateVertexArrayOES();
|
already_AddRefed<WebGLVertexArray> CreateVertexArrayOES();
|
||||||
@ -305,7 +305,7 @@ class WebGLExtensionInstancedArrays
|
|||||||
: public WebGLExtensionBase
|
: public WebGLExtensionBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WebGLExtensionInstancedArrays(WebGLContext* context);
|
explicit WebGLExtensionInstancedArrays(WebGLContext* aContext);
|
||||||
virtual ~WebGLExtensionInstancedArrays();
|
virtual ~WebGLExtensionInstancedArrays();
|
||||||
|
|
||||||
void DrawArraysInstancedANGLE(GLenum mode, GLint first,
|
void DrawArraysInstancedANGLE(GLenum mode, GLint first,
|
||||||
@ -324,7 +324,7 @@ class WebGLExtensionBlendMinMax
|
|||||||
: public WebGLExtensionBase
|
: public WebGLExtensionBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WebGLExtensionBlendMinMax(WebGLContext*);
|
explicit WebGLExtensionBlendMinMax(WebGLContext* aValue);
|
||||||
virtual ~WebGLExtensionBlendMinMax();
|
virtual ~WebGLExtensionBlendMinMax();
|
||||||
|
|
||||||
static bool IsSupported(const WebGLContext*);
|
static bool IsSupported(const WebGLContext*);
|
||||||
|
@ -31,7 +31,7 @@ class WebGLProgram MOZ_FINAL
|
|||||||
, public WebGLContextBoundObject
|
, public WebGLContextBoundObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WebGLProgram(WebGLContext *context);
|
explicit WebGLProgram(WebGLContext* aContext);
|
||||||
|
|
||||||
void Delete();
|
void Delete();
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ public:
|
|||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// CONSTRUCTOR
|
// CONSTRUCTOR
|
||||||
|
|
||||||
WebGLQuery(WebGLContext *context);
|
explicit WebGLQuery(WebGLContext* aContext);
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// MEMBER FUNCTIONS
|
// MEMBER FUNCTIONS
|
||||||
|
@ -35,7 +35,7 @@ class WebGLTexture MOZ_FINAL
|
|||||||
, public WebGLFramebufferAttachable
|
, public WebGLFramebufferAttachable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WebGLTexture(WebGLContext *context);
|
explicit WebGLTexture(WebGLContext* aContext);
|
||||||
|
|
||||||
void Delete();
|
void Delete();
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ struct WebGLUniformInfo {
|
|||||||
bool isArray;
|
bool isArray;
|
||||||
ShDataType type;
|
ShDataType type;
|
||||||
|
|
||||||
WebGLUniformInfo(uint32_t s = 0, bool a = false, ShDataType t = SH_NONE)
|
explicit WebGLUniformInfo(uint32_t s = 0, bool a = false, ShDataType t = SH_NONE)
|
||||||
: arraySize(s), isArray(a), type(t) {}
|
: arraySize(s), isArray(a), type(t) {}
|
||||||
|
|
||||||
int ElementSize() const {
|
int ElementSize() const {
|
||||||
|
@ -58,13 +58,13 @@ namespace mozilla {
|
|||||||
// implementations not expecting characters outside the GLSL ES set.
|
// implementations not expecting characters outside the GLSL ES set.
|
||||||
class StripComments {
|
class StripComments {
|
||||||
public:
|
public:
|
||||||
StripComments(const nsAString& str)
|
explicit StripComments(const nsAString& aStr)
|
||||||
: m_parseState(BeginningOfLine)
|
: m_parseState(BeginningOfLine)
|
||||||
, m_end(str.EndReading())
|
, m_end(aStr.EndReading())
|
||||||
, m_current(str.BeginReading())
|
, m_current(aStr.BeginReading())
|
||||||
, m_position(0)
|
, m_position(0)
|
||||||
{
|
{
|
||||||
m_result.SetLength(str.Length());
|
m_result.SetLength(aStr.Length());
|
||||||
parse();
|
parse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ public:
|
|||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// PROTECTED
|
// PROTECTED
|
||||||
protected:
|
protected:
|
||||||
WebGLVertexArray(WebGLContext* context);
|
explicit WebGLVertexArray(WebGLContext* aContext);
|
||||||
|
|
||||||
virtual ~WebGLVertexArray() {
|
virtual ~WebGLVertexArray() {
|
||||||
MOZ_ASSERT(IsDeleted());
|
MOZ_ASSERT(IsDeleted());
|
||||||
|
@ -19,8 +19,8 @@ public:
|
|||||||
virtual void GenVertexArray() MOZ_OVERRIDE { };
|
virtual void GenVertexArray() MOZ_OVERRIDE { };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
WebGLVertexArrayFake(WebGLContext *context)
|
explicit WebGLVertexArrayFake(WebGLContext* aContext)
|
||||||
: WebGLVertexArray(context)
|
: WebGLVertexArray(aContext)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
~WebGLVertexArrayFake() {
|
~WebGLVertexArrayFake() {
|
||||||
|
@ -19,8 +19,8 @@ public:
|
|||||||
virtual void GenVertexArray() MOZ_OVERRIDE;
|
virtual void GenVertexArray() MOZ_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
WebGLVertexArrayGL(WebGLContext* context)
|
explicit WebGLVertexArrayGL(WebGLContext* aContext)
|
||||||
: WebGLVertexArray(context)
|
: WebGLVertexArray(aContext)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
~WebGLVertexArrayGL() {
|
~WebGLVertexArrayGL() {
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(CryptoKeyPair)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(CryptoKeyPair)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CryptoKeyPair(nsIGlobalObject* aGlobal)
|
explicit CryptoKeyPair(nsIGlobalObject* aGlobal)
|
||||||
: mGlobal(aGlobal)
|
: mGlobal(aGlobal)
|
||||||
, mPublicKey(new CryptoKey(aGlobal))
|
, mPublicKey(new CryptoKey(aGlobal))
|
||||||
, mPrivateKey(new CryptoKey(aGlobal))
|
, mPrivateKey(new CryptoKey(aGlobal))
|
||||||
|
@ -110,7 +110,7 @@ enum TelemetryAlgorithm {
|
|||||||
class ClearException
|
class ClearException
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClearException(JSContext* aCx)
|
explicit ClearException(JSContext* aCx)
|
||||||
: mCx(aCx)
|
: mCx(aCx)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -379,8 +379,8 @@ WebCryptoTask::CallCallback(nsresult rv)
|
|||||||
class FailureTask : public WebCryptoTask
|
class FailureTask : public WebCryptoTask
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FailureTask(nsresult rv) {
|
explicit FailureTask(nsresult aRv) {
|
||||||
mEarlyRv = rv;
|
mEarlyRv = aRv;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class VersionChangeListener MOZ_FINAL : public nsIDOMEventListener
|
|||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
|
||||||
VersionChangeListener(IDBDatabase* aDatabase)
|
explicit VersionChangeListener(IDBDatabase* aDatabase)
|
||||||
: mDatabase(aDatabase)
|
: mDatabase(aDatabase)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -1790,7 +1790,7 @@ public:
|
|||||||
|
|
||||||
NS_FORWARD_NSICONTENTPERMISSIONREQUEST(mCursor->);
|
NS_FORWARD_NSICONTENTPERMISSIONREQUEST(mCursor->);
|
||||||
|
|
||||||
DeviceStorageCursorRequest(nsDOMDeviceStorageCursor* aCursor)
|
explicit DeviceStorageCursorRequest(nsDOMDeviceStorageCursor* aCursor)
|
||||||
: mCursor(aCursor) { }
|
: mCursor(aCursor) { }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -34,7 +34,7 @@ enum LineBreakType
|
|||||||
class MOZ_STACK_CLASS ContentEventHandler
|
class MOZ_STACK_CLASS ContentEventHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContentEventHandler(nsPresContext* aPresContext);
|
explicit ContentEventHandler(nsPresContext* aPresContext);
|
||||||
|
|
||||||
// NS_QUERY_SELECTED_TEXT event handler
|
// NS_QUERY_SELECTED_TEXT event handler
|
||||||
nsresult OnQuerySelectedText(WidgetQueryContentEvent* aEvent);
|
nsresult OnQuerySelectedText(WidgetQueryContentEvent* aEvent);
|
||||||
|
@ -71,7 +71,7 @@ private:
|
|||||||
class EventTargetChainItem
|
class EventTargetChainItem
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
EventTargetChainItem(EventTarget* aTarget);
|
explicit EventTargetChainItem(EventTarget* aTarget);
|
||||||
public:
|
public:
|
||||||
EventTargetChainItem()
|
EventTargetChainItem()
|
||||||
: mFlags(0)
|
: mFlags(0)
|
||||||
|
@ -3544,7 +3544,7 @@ EventStateManager::SetCursor(int32_t aCursor, imgIContainer* aContainer,
|
|||||||
class MOZ_STACK_CLASS ESMEventCB : public EventDispatchingCallback
|
class MOZ_STACK_CLASS ESMEventCB : public EventDispatchingCallback
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ESMEventCB(nsIContent* aTarget) : mTarget(aTarget) {}
|
explicit ESMEventCB(nsIContent* aTarget) : mTarget(aTarget) {}
|
||||||
|
|
||||||
virtual void HandleEvent(EventChainPostVisitor& aVisitor)
|
virtual void HandleEvent(EventChainPostVisitor& aVisitor)
|
||||||
{
|
{
|
||||||
|
@ -386,7 +386,7 @@ IMEContentObserver::NotifySelectionChanged(nsIDOMDocument* aDOMDocument,
|
|||||||
class PositionChangeEvent MOZ_FINAL : public nsRunnable
|
class PositionChangeEvent MOZ_FINAL : public nsRunnable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PositionChangeEvent(IMEContentObserver* aDispatcher)
|
explicit PositionChangeEvent(IMEContentObserver* aDispatcher)
|
||||||
: mDispatcher(aDispatcher)
|
: mDispatcher(aDispatcher)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mDispatcher);
|
MOZ_ASSERT(mDispatcher);
|
||||||
@ -1037,7 +1037,7 @@ IMEContentObserver::MaybeNotifyIMEOfPositionChange()
|
|||||||
class AsyncMergeableNotificationsFlusher : public nsRunnable
|
class AsyncMergeableNotificationsFlusher : public nsRunnable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AsyncMergeableNotificationsFlusher(IMEContentObserver* aIMEContentObserver)
|
explicit AsyncMergeableNotificationsFlusher(IMEContentObserver* aIMEContentObserver)
|
||||||
: mIMEContentObserver(aIMEContentObserver)
|
: mIMEContentObserver(aIMEContentObserver)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mIMEContentObserver);
|
MOZ_ASSERT(mIMEContentObserver);
|
||||||
|
@ -746,7 +746,7 @@ IMEStateManager::GetNewIMEState(nsPresContext* aPresContext,
|
|||||||
// Helper class, used for IME enabled state change notification
|
// Helper class, used for IME enabled state change notification
|
||||||
class IMEEnabledStateChangedEvent : public nsRunnable {
|
class IMEEnabledStateChangedEvent : public nsRunnable {
|
||||||
public:
|
public:
|
||||||
IMEEnabledStateChangedEvent(uint32_t aState)
|
explicit IMEEnabledStateChangedEvent(uint32_t aState)
|
||||||
: mState(aState)
|
: mState(aState)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ class PaintRequest MOZ_FINAL : public nsIDOMPaintRequest
|
|||||||
, public nsWrapperCache
|
, public nsWrapperCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PaintRequest(nsIDOMEvent* aParent)
|
explicit PaintRequest(nsIDOMEvent* aParent)
|
||||||
: mParent(aParent)
|
: mParent(aParent)
|
||||||
{
|
{
|
||||||
mRequest.mFlags = 0;
|
mRequest.mFlags = 0;
|
||||||
@ -59,7 +59,7 @@ class PaintRequestList MOZ_FINAL : public nsISupports,
|
|||||||
public nsWrapperCache
|
public nsWrapperCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PaintRequestList(nsIDOMEvent *aParent) : mParent(aParent)
|
explicit PaintRequestList(nsIDOMEvent *aParent) : mParent(aParent)
|
||||||
{
|
{
|
||||||
SetIsDOMBinding();
|
SetIsDOMBinding();
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ public:
|
|||||||
AsyncWork(nsIRequestObserver* aObserver, nsISupports* aCtxt);
|
AsyncWork(nsIRequestObserver* aObserver, nsISupports* aCtxt);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
AsyncHelper(nsISupports* aStream)
|
explicit AsyncHelper(nsISupports* aStream)
|
||||||
: mStream(aStream),
|
: mStream(aStream),
|
||||||
mStatus(NS_OK)
|
mStatus(NS_OK)
|
||||||
{ }
|
{ }
|
||||||
|
@ -152,7 +152,7 @@ private:
|
|||||||
class AsyncFlusher : public AsyncHelper
|
class AsyncFlusher : public AsyncHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AsyncFlusher(nsISupports* aStream)
|
explicit AsyncFlusher(nsISupports* aStream)
|
||||||
: AsyncHelper(aStream)
|
: AsyncHelper(aStream)
|
||||||
{ }
|
{ }
|
||||||
protected:
|
protected:
|
||||||
|
@ -256,7 +256,7 @@ public:
|
|||||||
NS_DECL_NSIRUNNABLE
|
NS_DECL_NSIRUNNABLE
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FinishHelper(FileHandleBase* aFileHandle);
|
explicit FinishHelper(FileHandleBase* aFileHandle);
|
||||||
~FinishHelper()
|
~FinishHelper()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ private:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
inline
|
inline
|
||||||
FileHandleQueue(FileHandleBase* aFileHandle);
|
explicit FileHandleQueue(FileHandleBase* aFileHandle);
|
||||||
|
|
||||||
~FileHandleQueue();
|
~FileHandleQueue();
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ public:
|
|||||||
NS_DECL_THREADSAFE_ISUPPORTS
|
NS_DECL_THREADSAFE_ISUPPORTS
|
||||||
NS_DECL_NSIRUNNABLE
|
NS_DECL_NSIRUNNABLE
|
||||||
|
|
||||||
CloseRunnable(FileHelper* aFileHelper)
|
explicit CloseRunnable(FileHelper* aFileHelper)
|
||||||
: mFileHelper(aFileHelper)
|
: mFileHelper(aFileHelper)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ public:
|
|||||||
NS_DECL_THREADSAFE_ISUPPORTS
|
NS_DECL_THREADSAFE_ISUPPORTS
|
||||||
NS_DECL_NSIRUNNABLE
|
NS_DECL_NSIRUNNABLE
|
||||||
|
|
||||||
DestroyRunnable(FileHelper* aFileHelper)
|
explicit DestroyRunnable(FileHelper* aFileHelper)
|
||||||
: mFileHelper(aFileHelper)
|
: mFileHelper(aFileHelper)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ CreateFileTask::Work()
|
|||||||
class AutoClose
|
class AutoClose
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoClose(nsIOutputStream* aStream)
|
explicit AutoClose(nsIOutputStream* aStream)
|
||||||
: mStream(aStream)
|
: mStream(aStream)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(aStream);
|
MOZ_ASSERT(aStream);
|
||||||
|
@ -41,7 +41,7 @@ class MOZ_STACK_CLASS TransactionPoolEventTarget : public StackBasedEventTarget
|
|||||||
public:
|
public:
|
||||||
NS_DECL_NSIEVENTTARGET
|
NS_DECL_NSIEVENTTARGET
|
||||||
|
|
||||||
TransactionPoolEventTarget(IDBTransaction* aTransaction)
|
explicit TransactionPoolEventTarget(IDBTransaction* aTransaction)
|
||||||
: mTransaction(aTransaction)
|
: mTransaction(aTransaction)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
HelperBase(IDBRequest* aRequest)
|
explicit HelperBase(IDBRequest* aRequest)
|
||||||
: mRequest(aRequest)
|
: mRequest(aRequest)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ namespace {
|
|||||||
class CursorHelper : public AsyncConnectionHelper
|
class CursorHelper : public AsyncConnectionHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CursorHelper(IDBCursor* aCursor)
|
explicit CursorHelper(IDBCursor* aCursor)
|
||||||
: AsyncConnectionHelper(aCursor->Transaction(), aCursor->Request()),
|
: AsyncConnectionHelper(aCursor->Transaction(), aCursor->Request()),
|
||||||
mCursor(aCursor), mActor(nullptr)
|
mCursor(aCursor), mActor(nullptr)
|
||||||
{
|
{
|
||||||
|
@ -52,7 +52,7 @@ namespace {
|
|||||||
class NoRequestDatabaseHelper : public AsyncConnectionHelper
|
class NoRequestDatabaseHelper : public AsyncConnectionHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NoRequestDatabaseHelper(IDBTransaction* aTransaction)
|
explicit NoRequestDatabaseHelper(IDBTransaction* aTransaction)
|
||||||
: AsyncConnectionHelper(aTransaction, nullptr)
|
: AsyncConnectionHelper(aTransaction, nullptr)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(IndexedDatabaseManager::IsMainProcess(), "Wrong process!");
|
NS_ASSERTION(IndexedDatabaseManager::IsMainProcess(), "Wrong process!");
|
||||||
|
@ -134,7 +134,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
IDBVersionChangeEvent(mozilla::dom::EventTarget* aOwner)
|
explicit IDBVersionChangeEvent(mozilla::dom::EventTarget* aOwner)
|
||||||
: Event(aOwner, nullptr, nullptr)
|
: Event(aOwner, nullptr, nullptr)
|
||||||
{
|
{
|
||||||
SetIsDOMBinding();
|
SetIsDOMBinding();
|
||||||
|
@ -65,7 +65,7 @@ public:
|
|||||||
IMPL_EVENT_HANDLER(progress)
|
IMPL_EVENT_HANDLER(progress)
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IDBFileRequest(nsPIDOMWindow* aWindow);
|
explicit IDBFileRequest(nsPIDOMWindow* aWindow);
|
||||||
~IDBFileRequest();
|
~IDBFileRequest();
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -456,7 +456,7 @@ TransactionThreadPool::AbortTransactionsForDatabase(IDBDatabase* aDatabase)
|
|||||||
|
|
||||||
struct MOZ_STACK_CLASS TransactionSearchInfo
|
struct MOZ_STACK_CLASS TransactionSearchInfo
|
||||||
{
|
{
|
||||||
TransactionSearchInfo(nsIOfflineStorage* aDatabase)
|
explicit TransactionSearchInfo(nsIOfflineStorage* aDatabase)
|
||||||
: db(aDatabase), found(false)
|
: db(aDatabase), found(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ protected:
|
|||||||
NS_DECL_THREADSAFE_ISUPPORTS
|
NS_DECL_THREADSAFE_ISUPPORTS
|
||||||
NS_DECL_NSIRUNNABLE
|
NS_DECL_NSIRUNNABLE
|
||||||
|
|
||||||
TransactionQueue(IDBTransaction* aTransaction);
|
explicit TransactionQueue(IDBTransaction* aTransaction);
|
||||||
|
|
||||||
void Unblock();
|
void Unblock();
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ protected:
|
|||||||
|
|
||||||
struct TransactionInfo
|
struct TransactionInfo
|
||||||
{
|
{
|
||||||
TransactionInfo(IDBTransaction* aTransaction)
|
explicit TransactionInfo(IDBTransaction* aTransaction)
|
||||||
{
|
{
|
||||||
MOZ_COUNT_CTOR(TransactionInfo);
|
MOZ_COUNT_CTOR(TransactionInfo);
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ public:
|
|||||||
class IPCDeleteDatabaseHelper : public AsyncConnectionHelper
|
class IPCDeleteDatabaseHelper : public AsyncConnectionHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
IPCDeleteDatabaseHelper(IDBRequest* aRequest)
|
explicit IPCDeleteDatabaseHelper(IDBRequest* aRequest)
|
||||||
: AsyncConnectionHelper(static_cast<IDBDatabase*>(nullptr), aRequest)
|
: AsyncConnectionHelper(static_cast<IDBDatabase*>(nullptr), aRequest)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ public:
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIDELETEDMESSAGEINFO
|
NS_DECL_NSIDELETEDMESSAGEINFO
|
||||||
|
|
||||||
DeletedMessageInfo(const DeletedMessageInfoData& aData);
|
explicit DeletedMessageInfo(const DeletedMessageInfoData& aData);
|
||||||
|
|
||||||
DeletedMessageInfo(int32_t* aMessageIds,
|
DeletedMessageInfo(int32_t* aMessageIds,
|
||||||
uint32_t aMsgCount,
|
uint32_t aMsgCount,
|
||||||
|
@ -58,7 +58,7 @@ public:
|
|||||||
uint64_t aExpiryDate,
|
uint64_t aExpiryDate,
|
||||||
bool aReadReportRequested);
|
bool aReadReportRequested);
|
||||||
|
|
||||||
MmsMessage(const mobilemessage::MmsMessageData& aData);
|
explicit MmsMessage(const mobilemessage::MmsMessageData& aData);
|
||||||
|
|
||||||
static nsresult Create(int32_t aId,
|
static nsresult Create(int32_t aId,
|
||||||
uint64_t aThreadId,
|
uint64_t aThreadId,
|
||||||
|
@ -22,7 +22,7 @@ public:
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIMOBILEMESSAGECALLBACK
|
NS_DECL_NSIMOBILEMESSAGECALLBACK
|
||||||
|
|
||||||
MobileMessageCallback(DOMRequest* aDOMRequest);
|
explicit MobileMessageCallback(DOMRequest* aDOMRequest);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
~MobileMessageCallback();
|
~MobileMessageCallback();
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
uint64_t aUnreadCount,
|
uint64_t aUnreadCount,
|
||||||
mobilemessage::MessageType aLastMessageType);
|
mobilemessage::MessageType aLastMessageType);
|
||||||
|
|
||||||
MobileMessageThread(const ThreadData& aData);
|
explicit MobileMessageThread(const ThreadData& aData);
|
||||||
|
|
||||||
static nsresult Create(uint64_t aId,
|
static nsresult Create(uint64_t aId,
|
||||||
const JS::Value& aParticipants,
|
const JS::Value& aParticipants,
|
||||||
|
@ -35,7 +35,7 @@ public:
|
|||||||
uint64_t aDeliveryTimestamp,
|
uint64_t aDeliveryTimestamp,
|
||||||
bool aRead);
|
bool aRead);
|
||||||
|
|
||||||
SmsMessage(const mobilemessage::SmsMessageData& aData);
|
explicit SmsMessage(const mobilemessage::SmsMessageData& aData);
|
||||||
|
|
||||||
static nsresult Create(int32_t aId,
|
static nsresult Create(int32_t aId,
|
||||||
uint64_t aThreadId,
|
uint64_t aThreadId,
|
||||||
|
@ -497,7 +497,7 @@ UDPSocket::Init(const nsString& aLocalAddress,
|
|||||||
class OpenSocketRunnable MOZ_FINAL : public nsRunnable
|
class OpenSocketRunnable MOZ_FINAL : public nsRunnable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
OpenSocketRunnable(UDPSocket* aSocket) : mSocket(aSocket)
|
explicit OpenSocketRunnable(UDPSocket* aSocket) : mSocket(aSocket)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
NS_IMETHOD Run() MOZ_OVERRIDE
|
NS_IMETHOD Run() MOZ_OVERRIDE
|
||||||
|
@ -33,8 +33,8 @@ public:
|
|||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
NS_DECL_NSICONTENTPERMISSIONREQUEST
|
NS_DECL_NSICONTENTPERMISSIONREQUEST
|
||||||
|
|
||||||
DesktopNotificationRequest(DesktopNotification* notification)
|
explicit DesktopNotificationRequest(DesktopNotification* aNotification)
|
||||||
: mDesktopNotification(notification) {}
|
: mDesktopNotification(aNotification) {}
|
||||||
|
|
||||||
NS_IMETHOD Run() MOZ_OVERRIDE
|
NS_IMETHOD Run() MOZ_OVERRIDE
|
||||||
{
|
{
|
||||||
|
@ -184,7 +184,7 @@ public:
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIOBSERVER
|
NS_DECL_NSIOBSERVER
|
||||||
|
|
||||||
NotificationObserver(Notification* aNotification)
|
explicit NotificationObserver(Notification* aNotification)
|
||||||
: mNotification(aNotification) {}
|
: mNotification(aNotification) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -101,8 +101,8 @@ NPObjectIsOutOfProcessProxy(NPObject *obj)
|
|||||||
class AutoJSExceptionReporter
|
class AutoJSExceptionReporter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoJSExceptionReporter(JSContext *cx)
|
explicit AutoJSExceptionReporter(JSContext* aCx)
|
||||||
: mCx(cx)
|
: mCx(aCx)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -380,13 +380,13 @@ class MOZ_STACK_CLASS NPPAutoPusher : public NPPStack,
|
|||||||
protected PluginDestructionGuard
|
protected PluginDestructionGuard
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NPPAutoPusher(NPP npp)
|
explicit NPPAutoPusher(NPP aNpp)
|
||||||
: PluginDestructionGuard(npp),
|
: PluginDestructionGuard(aNpp),
|
||||||
mOldNPP(sCurrentNPP)
|
mOldNPP(sCurrentNPP)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(npp, "Uh, null npp passed to NPPAutoPusher!");
|
NS_ASSERTION(aNpp, "Uh, null aNpp passed to NPPAutoPusher!");
|
||||||
|
|
||||||
sCurrentNPP = npp;
|
sCurrentNPP = aNpp;
|
||||||
}
|
}
|
||||||
|
|
||||||
~NPPAutoPusher()
|
~NPPAutoPusher()
|
||||||
|
@ -1153,7 +1153,7 @@ nsNPAPIPluginInstance::IsWindowless(bool* isWindowless)
|
|||||||
class MOZ_STACK_CLASS AutoPluginLibraryCall
|
class MOZ_STACK_CLASS AutoPluginLibraryCall
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoPluginLibraryCall(nsNPAPIPluginInstance* aThis)
|
explicit AutoPluginLibraryCall(nsNPAPIPluginInstance* aThis)
|
||||||
: mThis(aThis), mGuard(aThis), mLibrary(nullptr)
|
: mThis(aThis), mGuard(aThis), mLibrary(nullptr)
|
||||||
{
|
{
|
||||||
nsNPAPIPlugin* plugin = mThis->GetPlugin();
|
nsNPAPIPlugin* plugin = mThis->GetPlugin();
|
||||||
@ -1669,7 +1669,7 @@ class CarbonEventModelFailureEvent : public nsRunnable {
|
|||||||
public:
|
public:
|
||||||
nsCOMPtr<nsIContent> mContent;
|
nsCOMPtr<nsIContent> mContent;
|
||||||
|
|
||||||
CarbonEventModelFailureEvent(nsIContent* aContent)
|
explicit CarbonEventModelFailureEvent(nsIContent* aContent)
|
||||||
: mContent(aContent)
|
: mContent(aContent)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -3634,7 +3634,7 @@ class nsPluginDestroyRunnable : public nsRunnable,
|
|||||||
public PRCList
|
public PRCList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsPluginDestroyRunnable(nsNPAPIPluginInstance *aInstance)
|
explicit nsPluginDestroyRunnable(nsNPAPIPluginInstance *aInstance)
|
||||||
: mInstance(aInstance)
|
: mInstance(aInstance)
|
||||||
{
|
{
|
||||||
PR_INIT_CLIST(this);
|
PR_INIT_CLIST(this);
|
||||||
|
@ -102,7 +102,7 @@ class nsPluginDOMContextMenuListener : public nsIDOMEventListener
|
|||||||
virtual ~nsPluginDOMContextMenuListener();
|
virtual ~nsPluginDOMContextMenuListener();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
nsPluginDOMContextMenuListener(nsIContent* aContent);
|
explicit nsPluginDOMContextMenuListener(nsIContent* aContent);
|
||||||
|
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIDOMEVENTLISTENER
|
NS_DECL_NSIDOMEVENTLISTENER
|
||||||
|
@ -38,7 +38,7 @@ class nsPluginByteRangeStreamListener
|
|||||||
, public nsIInterfaceRequestor
|
, public nsIInterfaceRequestor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsPluginByteRangeStreamListener(nsIWeakReference* aWeakPtr);
|
explicit nsPluginByteRangeStreamListener(nsIWeakReference* aWeakPtr);
|
||||||
|
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIREQUESTOBSERVER
|
NS_DECL_NSIREQUESTOBSERVER
|
||||||
|
@ -30,7 +30,7 @@ class nsIChannel;
|
|||||||
class CachedFileHolder
|
class CachedFileHolder
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CachedFileHolder(nsIFile* cacheFile);
|
explicit CachedFileHolder(nsIFile* cacheFile);
|
||||||
~CachedFileHolder();
|
~CachedFileHolder();
|
||||||
|
|
||||||
void AddRef();
|
void AddRef();
|
||||||
|
@ -117,9 +117,9 @@ static char* CFStringRefToUTF8Buffer(CFStringRef cfString)
|
|||||||
|
|
||||||
class AutoCFTypeObject {
|
class AutoCFTypeObject {
|
||||||
public:
|
public:
|
||||||
AutoCFTypeObject(CFTypeRef object)
|
explicit AutoCFTypeObject(CFTypeRef aObject)
|
||||||
{
|
{
|
||||||
mObject = object;
|
mObject = aObject;
|
||||||
}
|
}
|
||||||
~AutoCFTypeObject()
|
~AutoCFTypeObject()
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ namespace plugins {
|
|||||||
*/
|
*/
|
||||||
class PluginBackgroundDestroyerParent : public PPluginBackgroundDestroyerParent {
|
class PluginBackgroundDestroyerParent : public PPluginBackgroundDestroyerParent {
|
||||||
public:
|
public:
|
||||||
PluginBackgroundDestroyerParent(gfxASurface* aDyingBackground);
|
explicit PluginBackgroundDestroyerParent(gfxASurface* aDyingBackground);
|
||||||
|
|
||||||
virtual ~PluginBackgroundDestroyerParent();
|
virtual ~PluginBackgroundDestroyerParent();
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ PluginInstanceParent::AnswerNPN_SetValue_NPPVpluginUsesDOMForCursor(
|
|||||||
class NotificationSink : public CompositionNotifySink
|
class NotificationSink : public CompositionNotifySink
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NotificationSink(PluginInstanceParent *aInstance) : mInstance(aInstance)
|
explicit NotificationSink(PluginInstanceParent* aInstance) : mInstance(aInstance)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
virtual void DidComposite() { mInstance->DidComposite(); }
|
virtual void DidComposite() { mInstance->DidComposite(); }
|
||||||
|
@ -743,10 +743,10 @@ void NotifyBrowserOfPopCursor()
|
|||||||
struct WindowInfo {
|
struct WindowInfo {
|
||||||
uint32_t window_id;
|
uint32_t window_id;
|
||||||
CGRect bounds;
|
CGRect bounds;
|
||||||
WindowInfo(NSWindow* window) {
|
explicit WindowInfo(NSWindow* aWindow) {
|
||||||
NSInteger window_num = [window windowNumber];
|
NSInteger window_num = [aWindow windowNumber];
|
||||||
window_id = window_num > 0 ? window_num : 0;
|
window_id = window_num > 0 ? window_num : 0;
|
||||||
bounds = NSRectToCGRect([window frame]);
|
bounds = NSRectToCGRect([aWindow frame]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// aFilePath is UTF8, not native!
|
// aFilePath is UTF8, not native!
|
||||||
PluginModuleParent(const char* aFilePath);
|
explicit PluginModuleParent(const char* aFilePath);
|
||||||
virtual ~PluginModuleParent();
|
virtual ~PluginModuleParent();
|
||||||
|
|
||||||
virtual void SetPlugin(nsNPAPIPlugin* plugin) MOZ_OVERRIDE
|
virtual void SetPlugin(nsNPAPIPlugin* plugin) MOZ_OVERRIDE
|
||||||
|
@ -19,7 +19,7 @@ protected:
|
|||||||
typedef mozilla::ipc::ProcessChild ProcessChild;
|
typedef mozilla::ipc::ProcessChild ProcessChild;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PluginProcessChild(ProcessHandle parentHandle) : ProcessChild(parentHandle)
|
explicit PluginProcessChild(ProcessHandle aParentHandle) : ProcessChild(aParentHandle)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
virtual ~PluginProcessChild()
|
virtual ~PluginProcessChild()
|
||||||
|
@ -25,7 +25,7 @@ namespace plugins {
|
|||||||
class PluginProcessParent : public mozilla::ipc::GeckoChildProcessHost
|
class PluginProcessParent : public mozilla::ipc::GeckoChildProcessHost
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PluginProcessParent(const std::string& aPluginFilePath);
|
explicit PluginProcessParent(const std::string& aPluginFilePath);
|
||||||
~PluginProcessParent();
|
~PluginProcessParent();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -36,7 +36,7 @@ class PluginScriptableObjectParent : public PPluginScriptableObjectParent
|
|||||||
friend class PluginInstanceParent;
|
friend class PluginInstanceParent;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PluginScriptableObjectParent(ScriptableObjectType aType);
|
explicit PluginScriptableObjectParent(ScriptableObjectType aType);
|
||||||
virtual ~PluginScriptableObjectParent();
|
virtual ~PluginScriptableObjectParent();
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -258,7 +258,7 @@ template<class ActorType, class Traits=ProtectedActorTraits<ActorType> >
|
|||||||
class ProtectedActor
|
class ProtectedActor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ProtectedActor(ActorType* aActor) : mActor(aActor)
|
explicit ProtectedActor(ActorType* aActor) : mActor(aActor)
|
||||||
{
|
{
|
||||||
if (!Traits::Nullable()) {
|
if (!Traits::Nullable()) {
|
||||||
NS_ASSERTION(mActor, "This should never be null!");
|
NS_ASSERTION(mActor, "This should never be null!");
|
||||||
|
@ -41,7 +41,7 @@ NS_IMPL_ISUPPORTS0(PromiseNativeHandler)
|
|||||||
class PromiseTask MOZ_FINAL : public nsRunnable
|
class PromiseTask MOZ_FINAL : public nsRunnable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PromiseTask(Promise* aPromise)
|
explicit PromiseTask(Promise* aPromise)
|
||||||
: mPromise(aPromise)
|
: mPromise(aPromise)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(aPromise);
|
MOZ_ASSERT(aPromise);
|
||||||
|
@ -341,7 +341,7 @@ class ResetOrClearRunnable MOZ_FINAL : public nsRunnable,
|
|||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
|
||||||
ResetOrClearRunnable(bool aClear)
|
explicit ResetOrClearRunnable(bool aClear)
|
||||||
: mCallbackState(Pending),
|
: mCallbackState(Pending),
|
||||||
mClear(aClear)
|
mClear(aClear)
|
||||||
{ }
|
{ }
|
||||||
@ -412,7 +412,7 @@ class FinalizeOriginEvictionRunnable MOZ_FINAL : public nsRunnable
|
|||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FinalizeOriginEvictionRunnable(nsTArray<nsCString>& aOrigins)
|
explicit FinalizeOriginEvictionRunnable(nsTArray<nsCString>& aOrigins)
|
||||||
: mCallbackState(Pending)
|
: mCallbackState(Pending)
|
||||||
{
|
{
|
||||||
mOrigins.SwapElements(aOrigins);
|
mOrigins.SwapElements(aOrigins);
|
||||||
@ -504,7 +504,7 @@ bool gTestingEnabled = false;
|
|||||||
class WaitForTransactionsToFinishRunnable MOZ_FINAL : public nsRunnable
|
class WaitForTransactionsToFinishRunnable MOZ_FINAL : public nsRunnable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WaitForTransactionsToFinishRunnable(SynchronizedOp* aOp)
|
explicit WaitForTransactionsToFinishRunnable(SynchronizedOp* aOp)
|
||||||
: mOp(aOp), mCountdown(1)
|
: mOp(aOp), mCountdown(1)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(mOp, "Why don't we have a runnable?");
|
NS_ASSERTION(mOp, "Why don't we have a runnable?");
|
||||||
|
@ -21,7 +21,7 @@ class StorageMatcher : public ValueType
|
|||||||
|
|
||||||
struct Closure
|
struct Closure
|
||||||
{
|
{
|
||||||
Closure(SelfType& aSelf)
|
explicit Closure(SelfType& aSelf)
|
||||||
: mSelf(aSelf), mPattern(EmptyCString()), mIndexes(nullptr)
|
: mSelf(aSelf), mPattern(EmptyCString()), mIndexes(nullptr)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ namespace
|
|||||||
class MOZ_STACK_CLASS nsSMILTimedElement::AutoIntervalUpdateBatcher
|
class MOZ_STACK_CLASS nsSMILTimedElement::AutoIntervalUpdateBatcher
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoIntervalUpdateBatcher(nsSMILTimedElement& aTimedElement)
|
explicit AutoIntervalUpdateBatcher(nsSMILTimedElement& aTimedElement)
|
||||||
: mTimedElement(aTimedElement),
|
: mTimedElement(aTimedElement),
|
||||||
mDidSetFlag(!aTimedElement.mDeferIntervalUpdates)
|
mDidSetFlag(!aTimedElement.mDeferIntervalUpdates)
|
||||||
{
|
{
|
||||||
@ -160,7 +160,7 @@ private:
|
|||||||
class MOZ_STACK_CLASS nsSMILTimedElement::AutoIntervalUpdater
|
class MOZ_STACK_CLASS nsSMILTimedElement::AutoIntervalUpdater
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutoIntervalUpdater(nsSMILTimedElement& aTimedElement)
|
explicit AutoIntervalUpdater(nsSMILTimedElement& aTimedElement)
|
||||||
: mTimedElement(aTimedElement) { }
|
: mTimedElement(aTimedElement) { }
|
||||||
|
|
||||||
~AutoIntervalUpdater()
|
~AutoIntervalUpdater()
|
||||||
@ -471,7 +471,7 @@ namespace
|
|||||||
class MOZ_STACK_CLASS RemoveByCreator
|
class MOZ_STACK_CLASS RemoveByCreator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RemoveByCreator(const nsSMILTimeValueSpec* aCreator) : mCreator(aCreator)
|
explicit RemoveByCreator(const nsSMILTimeValueSpec* aCreator) : mCreator(aCreator)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
||||||
@ -1338,7 +1338,7 @@ namespace
|
|||||||
class MOZ_STACK_CLASS RemoveByFunction
|
class MOZ_STACK_CLASS RemoveByFunction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RemoveByFunction(nsSMILTimedElement::RemovalTestFunction aFunction)
|
explicit RemoveByFunction(nsSMILTimedElement::RemovalTestFunction aFunction)
|
||||||
: mFunction(aFunction) { }
|
: mFunction(aFunction) { }
|
||||||
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
||||||
{
|
{
|
||||||
@ -1416,7 +1416,7 @@ namespace
|
|||||||
class MOZ_STACK_CLASS RemoveReset
|
class MOZ_STACK_CLASS RemoveReset
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RemoveReset(const nsSMILInstanceTime* aCurrentIntervalBegin)
|
explicit RemoveReset(const nsSMILInstanceTime* aCurrentIntervalBegin)
|
||||||
: mCurrentIntervalBegin(aCurrentIntervalBegin) { }
|
: mCurrentIntervalBegin(aCurrentIntervalBegin) { }
|
||||||
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
||||||
{
|
{
|
||||||
@ -1614,7 +1614,7 @@ namespace
|
|||||||
class MOZ_STACK_CLASS RemoveFiltered
|
class MOZ_STACK_CLASS RemoveFiltered
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RemoveFiltered(nsSMILTimeValue aCutoff) : mCutoff(aCutoff) { }
|
explicit RemoveFiltered(nsSMILTimeValue aCutoff) : mCutoff(aCutoff) { }
|
||||||
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
bool operator()(nsSMILInstanceTime* aInstanceTime, uint32_t /*aIndex*/)
|
||||||
{
|
{
|
||||||
// We can filter instance times that:
|
// We can filter instance times that:
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(CallsList)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(CallsList)
|
||||||
|
|
||||||
CallsList(Telephony* aTelephony, TelephonyCallGroup* aGroup = nullptr);
|
explicit CallsList(Telephony* aTelephony, TelephonyCallGroup* aGroup = nullptr);
|
||||||
|
|
||||||
nsPIDOMWindow*
|
nsPIDOMWindow*
|
||||||
GetParentObject() const;
|
GetParentObject() const;
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_FORWARD_SAFE_NSITELEPHONYLISTENER(mTelephony)
|
NS_FORWARD_SAFE_NSITELEPHONYLISTENER(mTelephony)
|
||||||
|
|
||||||
Listener(Telephony* aTelephony)
|
explicit Listener(Telephony* aTelephony)
|
||||||
: mTelephony(aTelephony)
|
: mTelephony(aTelephony)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mTelephony);
|
MOZ_ASSERT(mTelephony);
|
||||||
|
@ -18,7 +18,7 @@ class TelephonyIPCService;
|
|||||||
class TelephonyChild : public PTelephonyChild
|
class TelephonyChild : public PTelephonyChild
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TelephonyChild(TelephonyIPCService* aService);
|
explicit TelephonyChild(TelephonyIPCService* aService);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~TelephonyChild();
|
virtual ~TelephonyChild();
|
||||||
|
@ -33,7 +33,7 @@ class WorkerDataStore MOZ_FINAL : public DOMEventTargetHelper
|
|||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
|
||||||
WorkerDataStore(WorkerGlobalScope* aScope);
|
explicit WorkerDataStore(WorkerGlobalScope* aScope);
|
||||||
|
|
||||||
// WebIDL (internal functions)
|
// WebIDL (internal functions)
|
||||||
|
|
||||||
@ -137,4 +137,4 @@ private:
|
|||||||
} //namespace dom
|
} //namespace dom
|
||||||
} //namespace mozilla
|
} //namespace mozilla
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -28,7 +28,7 @@ public:
|
|||||||
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(WorkerDataStoreCursor)
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(WorkerDataStoreCursor)
|
||||||
NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS(WorkerDataStoreCursor)
|
NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS(WorkerDataStoreCursor)
|
||||||
|
|
||||||
WorkerDataStoreCursor(WorkerDataStore* aWorkerStore);
|
explicit WorkerDataStoreCursor(WorkerDataStore* aWorkerStore);
|
||||||
|
|
||||||
// WebIDL (internal functions)
|
// WebIDL (internal functions)
|
||||||
|
|
||||||
@ -65,4 +65,4 @@ private:
|
|||||||
} //namespace dom
|
} //namespace dom
|
||||||
} //namespace mozilla
|
} //namespace mozilla
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,7 +22,7 @@ public:
|
|||||||
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(Performance)
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(Performance)
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(Performance)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(Performance)
|
||||||
|
|
||||||
Performance(WorkerPrivate* aWorkerPrivate);
|
explicit Performance(WorkerPrivate* aWorkerPrivate);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
~Performance();
|
~Performance();
|
||||||
|
@ -918,7 +918,7 @@ class WorkerBackgroundChildCallback MOZ_FINAL :
|
|||||||
bool* mDone;
|
bool* mDone;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WorkerBackgroundChildCallback(bool* aDone)
|
explicit WorkerBackgroundChildCallback(bool* aDone)
|
||||||
: mDone(aDone)
|
: mDone(aDone)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(!NS_IsMainThread());
|
MOZ_ASSERT(!NS_IsMainThread());
|
||||||
@ -955,7 +955,7 @@ class WorkerThreadPrimaryRunnable MOZ_FINAL : public nsRunnable
|
|||||||
nsRefPtr<RuntimeService::WorkerThread> mThread;
|
nsRefPtr<RuntimeService::WorkerThread> mThread;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FinishedRunnable(already_AddRefed<RuntimeService::WorkerThread> aThread)
|
explicit FinishedRunnable(already_AddRefed<RuntimeService::WorkerThread> aThread)
|
||||||
: mThread(aThread)
|
: mThread(aThread)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mThread);
|
MOZ_ASSERT(mThread);
|
||||||
@ -1034,7 +1034,7 @@ class RuntimeService::WorkerThread MOZ_FINAL : public nsThread
|
|||||||
WorkerPrivate* mWorkerPrivate;
|
WorkerPrivate* mWorkerPrivate;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Observer(WorkerPrivate* aWorkerPrivate)
|
explicit Observer(WorkerPrivate* aWorkerPrivate)
|
||||||
: mWorkerPrivate(aWorkerPrivate)
|
: mWorkerPrivate(aWorkerPrivate)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(aWorkerPrivate);
|
MOZ_ASSERT(aWorkerPrivate);
|
||||||
|
@ -78,7 +78,7 @@ private:
|
|||||||
WorkerPrivate* mWorkerPrivate;
|
WorkerPrivate* mWorkerPrivate;
|
||||||
SharedWorkerInfo* mSharedWorkerInfo;
|
SharedWorkerInfo* mSharedWorkerInfo;
|
||||||
|
|
||||||
MatchSharedWorkerInfo(WorkerPrivate* aWorkerPrivate)
|
explicit MatchSharedWorkerInfo(WorkerPrivate* aWorkerPrivate)
|
||||||
: mWorkerPrivate(aWorkerPrivate), mSharedWorkerInfo(nullptr)
|
: mWorkerPrivate(aWorkerPrivate), mSharedWorkerInfo(nullptr)
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
@ -28,7 +28,7 @@ class InstallPhaseEvent : public Event
|
|||||||
nsRefPtr<Promise> mPromise;
|
nsRefPtr<Promise> mPromise;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
InstallPhaseEvent(mozilla::dom::EventTarget* aOwner);
|
explicit InstallPhaseEvent(mozilla::dom::EventTarget* aOwner);
|
||||||
~InstallPhaseEvent() {}
|
~InstallPhaseEvent() {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -80,7 +80,7 @@ class InstallEvent MOZ_FINAL : public InstallPhaseEvent
|
|||||||
nsRefPtr<ServiceWorker> mActiveWorker;
|
nsRefPtr<ServiceWorker> mActiveWorker;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
InstallEvent(mozilla::dom::EventTarget* aOwner);
|
explicit InstallEvent(mozilla::dom::EventTarget* aOwner);
|
||||||
~InstallEvent() {}
|
~InstallEvent() {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -203,7 +203,7 @@ class FinishFetchOnMainThreadRunnable : public nsRunnable
|
|||||||
{
|
{
|
||||||
nsMainThreadPtrHandle<ServiceWorkerUpdateInstance> mUpdateInstance;
|
nsMainThreadPtrHandle<ServiceWorkerUpdateInstance> mUpdateInstance;
|
||||||
public:
|
public:
|
||||||
FinishFetchOnMainThreadRunnable
|
explicit FinishFetchOnMainThreadRunnable
|
||||||
(const nsMainThreadPtrHandle<ServiceWorkerUpdateInstance>& aUpdateInstance)
|
(const nsMainThreadPtrHandle<ServiceWorkerUpdateInstance>& aUpdateInstance)
|
||||||
: mUpdateInstance(aUpdateInstance)
|
: mUpdateInstance(aUpdateInstance)
|
||||||
{ }
|
{ }
|
||||||
@ -1213,7 +1213,7 @@ class FinishActivationRunnable : public nsRunnable
|
|||||||
nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo> mRegistration;
|
nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo> mRegistration;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FinishActivationRunnable(const nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo>& aRegistration)
|
explicit FinishActivationRunnable(const nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo>& aRegistration)
|
||||||
: mRegistration(aRegistration)
|
: mRegistration(aRegistration)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(!NS_IsMainThread());
|
MOZ_ASSERT(!NS_IsMainThread());
|
||||||
@ -1300,7 +1300,7 @@ class FinishActivateHandler : public PromiseNativeHandler
|
|||||||
nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo> mRegistration;
|
nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo> mRegistration;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FinishActivateHandler(const nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo>& aRegistration)
|
explicit FinishActivateHandler(const nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo>& aRegistration)
|
||||||
: mRegistration(aRegistration)
|
: mRegistration(aRegistration)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(!NS_IsMainThread());
|
MOZ_ASSERT(!NS_IsMainThread());
|
||||||
|
@ -31,7 +31,7 @@ class URLProxy MOZ_FINAL
|
|||||||
public:
|
public:
|
||||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(URLProxy)
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(URLProxy)
|
||||||
|
|
||||||
URLProxy(mozilla::dom::URL* aURL)
|
explicit URLProxy(mozilla::dom::URL* aURL)
|
||||||
: mURL(aURL)
|
: mURL(aURL)
|
||||||
{
|
{
|
||||||
AssertIsOnMainThread();
|
AssertIsOnMainThread();
|
||||||
@ -265,7 +265,7 @@ public:
|
|||||||
class TeardownURLRunnable : public nsRunnable
|
class TeardownURLRunnable : public nsRunnable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TeardownURLRunnable(URLProxy* aURLProxy)
|
explicit TeardownURLRunnable(URLProxy* aURLProxy)
|
||||||
: mURLProxy(aURLProxy)
|
: mURLProxy(aURLProxy)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user