зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1015664
. Part 2: Remove some NS_HIDDEN usage. r=bsmedberg
This commit is contained in:
Родитель
cbb8fdebfc
Коммит
2a92625af7
|
@ -18,7 +18,7 @@ public:
|
|||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSISHELLSERVICE
|
||||
|
||||
nsresult Init() NS_HIDDEN;
|
||||
nsresult Init();
|
||||
|
||||
private:
|
||||
~nsGNOMEShellService() {}
|
||||
|
|
|
@ -66,7 +66,7 @@ public:
|
|||
~nsXMLNameSpaceMap() { Clear(); }
|
||||
|
||||
private:
|
||||
nsXMLNameSpaceMap() NS_HIDDEN; // use Create() to create new instances
|
||||
nsXMLNameSpaceMap(); // use Create() to create new instances
|
||||
|
||||
nsTArray<nsNameSpaceEntry> mNameSpaces;
|
||||
};
|
||||
|
|
|
@ -320,7 +320,7 @@ struct FireChangeArgs {
|
|||
// XXX Workaround for bug 980560 to maintain the existing broken semantics
|
||||
template<>
|
||||
struct nsIStyleRule::COMTypeInfo<css::Rule, void> {
|
||||
static const nsIID kIID NS_HIDDEN;
|
||||
static const nsIID kIID;
|
||||
};
|
||||
const nsIID nsIStyleRule::COMTypeInfo<css::Rule, void>::kIID = NS_ISTYLE_RULE_IID;
|
||||
|
||||
|
|
|
@ -40,8 +40,8 @@ public:
|
|||
PropertyList(nsIAtom* aName,
|
||||
NSPropertyDtorFunc aDtorFunc,
|
||||
void* aDtorData,
|
||||
bool aTransfer) NS_HIDDEN;
|
||||
~PropertyList() NS_HIDDEN;
|
||||
bool aTransfer);
|
||||
~PropertyList();
|
||||
|
||||
// Removes the property associated with the given object, and destroys
|
||||
// the property value
|
||||
|
|
|
@ -311,7 +311,7 @@ MaybeTestPBackground()
|
|||
// XXX Workaround for bug 986973 to maintain the existing broken semantics
|
||||
template<>
|
||||
struct nsIConsoleService::COMTypeInfo<nsConsoleService, void> {
|
||||
static const nsIID kIID NS_HIDDEN;
|
||||
static const nsIID kIID;
|
||||
};
|
||||
const nsIID nsIConsoleService::COMTypeInfo<nsConsoleService, void>::kIID = NS_ICONSOLESERVICE_IID;
|
||||
|
||||
|
|
|
@ -62,12 +62,12 @@
|
|||
// XXX Workaround for bug 986974 to maintain the existing broken semantics
|
||||
template<>
|
||||
struct nsIMediaDevice::COMTypeInfo<mozilla::VideoDevice, void> {
|
||||
static const nsIID kIID NS_HIDDEN;
|
||||
static const nsIID kIID;
|
||||
};
|
||||
const nsIID nsIMediaDevice::COMTypeInfo<mozilla::VideoDevice, void>::kIID = NS_IMEDIADEVICE_IID;
|
||||
template<>
|
||||
struct nsIMediaDevice::COMTypeInfo<mozilla::AudioDevice, void> {
|
||||
static const nsIID kIID NS_HIDDEN;
|
||||
static const nsIID kIID;
|
||||
};
|
||||
const nsIID nsIMediaDevice::COMTypeInfo<mozilla::AudioDevice, void>::kIID = NS_IMEDIADEVICE_IID;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
virtual nsIAtom* GetLanguageGroup(nsIAtom *aLanguage,
|
||||
nsresult *aError);
|
||||
|
||||
nsLanguageAtomService() NS_HIDDEN;
|
||||
nsLanguageAtomService();
|
||||
|
||||
private:
|
||||
NS_HIDDEN ~nsLanguageAtomService() { }
|
||||
|
|
|
@ -84,8 +84,8 @@ static const PLDHashTableOps PlaceholderMapOps = {
|
|||
|
||||
class nsFrameManagerBase::UndisplayedMap {
|
||||
public:
|
||||
UndisplayedMap(uint32_t aNumBuckets = 16) NS_HIDDEN;
|
||||
~UndisplayedMap(void) NS_HIDDEN;
|
||||
UndisplayedMap(uint32_t aNumBuckets = 16);
|
||||
~UndisplayedMap(void);
|
||||
|
||||
UndisplayedNode* GetFirstNode(nsIContent* aParentContent);
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ public:
|
|||
MOZ_ASSERT(mPresShell, "need a pres shell");
|
||||
MOZ_ASSERT(mStyleSet, "need a style set");
|
||||
}
|
||||
~nsFrameManager() NS_HIDDEN;
|
||||
~nsFrameManager();
|
||||
|
||||
/*
|
||||
* After Destroy is called, it is an error to call any FrameManager methods.
|
||||
|
|
|
@ -155,7 +155,7 @@ public:
|
|||
eAlwaysRebuildStyle
|
||||
};
|
||||
|
||||
nsPresContext(nsIDocument* aDocument, nsPresContextType aType) NS_HIDDEN;
|
||||
nsPresContext(nsIDocument* aDocument, nsPresContextType aType);
|
||||
|
||||
/**
|
||||
* Initialize the presentation context from a particular device.
|
||||
|
@ -1345,7 +1345,7 @@ protected:
|
|||
|
||||
protected:
|
||||
|
||||
virtual ~nsPresContext() NS_HIDDEN;
|
||||
virtual ~nsPresContext();
|
||||
|
||||
// these are private, use the list in nsFont.h if you want a public list
|
||||
enum {
|
||||
|
@ -1377,7 +1377,7 @@ public:
|
|||
|
||||
class nsRootPresContext MOZ_FINAL : public nsPresContext {
|
||||
public:
|
||||
nsRootPresContext(nsIDocument* aDocument, nsPresContextType aType) NS_HIDDEN;
|
||||
nsRootPresContext(nsIDocument* aDocument, nsPresContextType aType);
|
||||
virtual ~nsRootPresContext();
|
||||
virtual void Detach() MOZ_OVERRIDE;
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@ class nsStyleSheetService MOZ_FINAL
|
|||
, public nsIMemoryReporter
|
||||
{
|
||||
public:
|
||||
nsStyleSheetService() NS_HIDDEN;
|
||||
~nsStyleSheetService() NS_HIDDEN;
|
||||
nsStyleSheetService();
|
||||
~nsStyleSheetService();
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSISTYLESHEETSERVICE
|
||||
|
|
|
@ -31,8 +31,8 @@ public:
|
|||
nsRenderingContext* aRenderingContext = nullptr,
|
||||
// see OuterReflowState() below
|
||||
const nsHTMLReflowState* aOuterReflowState = nullptr,
|
||||
uint16_t aReflowDepth = 0) NS_HIDDEN;
|
||||
nsBoxLayoutState(const nsBoxLayoutState& aState) NS_HIDDEN;
|
||||
uint16_t aReflowDepth = 0);
|
||||
nsBoxLayoutState(const nsBoxLayoutState& aState);
|
||||
|
||||
nsPresContext* PresContext() const { return mPresContext; }
|
||||
nsIPresShell* PresShell() const { return mPresContext->PresShell(); }
|
||||
|
|
|
@ -151,7 +151,7 @@ PRLogModuleInfo *signalingLogInfo() {
|
|||
// XXX Workaround for bug 998092 to maintain the existing broken semantics
|
||||
template<>
|
||||
struct nsISupportsWeakReference::COMTypeInfo<nsSupportsWeakReference, void> {
|
||||
static const nsIID kIID NS_HIDDEN;
|
||||
static const nsIID kIID;
|
||||
};
|
||||
const nsIID nsISupportsWeakReference::COMTypeInfo<nsSupportsWeakReference, void>::kIID = NS_ISUPPORTSWEAKREFERENCE_IID;
|
||||
|
||||
|
|
|
@ -78,8 +78,8 @@ private:
|
|||
// These shouldn't be called directly:
|
||||
// - construct using GetInstance
|
||||
// - destroy using Release
|
||||
nsIOService() NS_HIDDEN;
|
||||
~nsIOService() NS_HIDDEN;
|
||||
nsIOService();
|
||||
~nsIOService();
|
||||
|
||||
nsresult TrackNetworkLinkStatusForOffline();
|
||||
|
||||
|
|
|
@ -36,14 +36,14 @@ public:
|
|||
NS_DECL_NSIPROTOCOLPROXYSERVICE
|
||||
NS_DECL_NSIOBSERVER
|
||||
|
||||
nsProtocolProxyService() NS_HIDDEN;
|
||||
nsProtocolProxyService();
|
||||
|
||||
nsresult Init();
|
||||
|
||||
protected:
|
||||
friend class nsAsyncResolveRequest;
|
||||
|
||||
~nsProtocolProxyService() NS_HIDDEN;
|
||||
~nsProtocolProxyService();
|
||||
|
||||
/**
|
||||
* This method is called whenever a preference may have changed or
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
nsresult Init();
|
||||
|
||||
private:
|
||||
~nsGConfService() NS_HIDDEN;
|
||||
~nsGConfService();
|
||||
|
||||
GConfClient *mClient;
|
||||
};
|
||||
|
|
|
@ -58,7 +58,7 @@ nsAndroidHandlerApp::SetDetailedDescription(const nsAString & aDescription)
|
|||
// XXX Workaround for bug 986975 to maintain the existing broken semantics
|
||||
template<>
|
||||
struct nsISharingHandlerApp::COMTypeInfo<nsAndroidHandlerApp, void> {
|
||||
static const nsIID kIID NS_HIDDEN;
|
||||
static const nsIID kIID;
|
||||
};
|
||||
const nsIID nsISharingHandlerApp::COMTypeInfo<nsAndroidHandlerApp, void>::kIID = NS_IHANDLERAPP_IID;
|
||||
|
||||
|
|
|
@ -405,7 +405,7 @@ nsMIMEInfoAndroid::SystemChooser::SetDetailedDescription(const nsAString&) {
|
|||
// XXX Workaround for bug 986975 to maintain the existing broken semantics
|
||||
template<>
|
||||
struct nsIHandlerApp::COMTypeInfo<nsMIMEInfoAndroid::SystemChooser, void> {
|
||||
static const nsIID kIID NS_HIDDEN;
|
||||
static const nsIID kIID;
|
||||
};
|
||||
const nsIID nsIHandlerApp::COMTypeInfo<nsMIMEInfoAndroid::SystemChooser, void>::kIID = NS_IHANDLERAPP_IID;
|
||||
|
||||
|
|
|
@ -67,9 +67,9 @@ class nsMIMEInfoBase : public nsIMIMEInfo {
|
|||
};
|
||||
|
||||
// nsMIMEInfoBase methods
|
||||
nsMIMEInfoBase(const char *aMIMEType = "") NS_HIDDEN;
|
||||
nsMIMEInfoBase(const nsACString& aMIMEType) NS_HIDDEN;
|
||||
nsMIMEInfoBase(const nsACString& aType, HandlerClass aClass) NS_HIDDEN;
|
||||
nsMIMEInfoBase(const char *aMIMEType = "");
|
||||
nsMIMEInfoBase(const nsACString& aMIMEType);
|
||||
nsMIMEInfoBase(const nsACString& aType, HandlerClass aClass);
|
||||
virtual ~nsMIMEInfoBase(); // must be virtual, as the the base class's Release should call the subclass's destructor
|
||||
|
||||
void SetMIMEType(const nsACString & aMIMEType) { mSchemeOrType = aMIMEType; }
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
* Other examples:
|
||||
*
|
||||
* NS_HIDDEN_(int) someMethod();
|
||||
* SomeCtor() NS_HIDDEN;
|
||||
* SomeCtor();
|
||||
*/
|
||||
|
||||
#ifdef HAVE_VISIBILITY_HIDDEN_ATTRIBUTE
|
||||
|
|
Загрузка…
Ссылка в новой задаче