mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 03:49:42 +00:00
Interface classes really do need to define |GetIID()|. 5 of these files are just being switched over to the macro. The others were all lacking |GetIID()| implementations.
This commit is contained in:
parent
04b7d1e78f
commit
1e47eb8696
@ -34,6 +34,7 @@
|
||||
class nsIBlender : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBLENDER_IID)
|
||||
|
||||
/**
|
||||
* Initialize the Blender
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
class nsIDOMRenderingContext : public nsISupports {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMRENDERINGCONTEXT_IID)
|
||||
|
||||
NS_IMETHOD GetColor(nsString& aColor)=0;
|
||||
NS_IMETHOD SetColor(const nsString& aColor)=0;
|
||||
|
@ -110,7 +110,7 @@ typedef NI_ColorSpace IL_ColorSpace;
|
||||
class nsIDeviceContext : public nsISupports
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDEVICE_CONTEXT_IID; return iid; }
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDEVICE_CONTEXT_IID)
|
||||
|
||||
/**
|
||||
* Initialize the device context from a widget
|
||||
|
@ -28,6 +28,7 @@
|
||||
class nsIDeviceContextSpec : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDEVICE_CONTEXT_SPEC_IID)
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -30,6 +30,7 @@ class nsIDeviceContextSpec;
|
||||
class nsIDeviceContextSpecFactory : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDEVICE_CONTEXT_SPEC_FACTORY_IID)
|
||||
/**
|
||||
* Initialize the device context spec factory
|
||||
* @return error status
|
||||
|
@ -54,6 +54,7 @@ typedef struct
|
||||
class nsIDrawingSurface : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDRAWING_SURFACE_IID)
|
||||
/**
|
||||
* Lock a rect of a drawing surface and return a
|
||||
* pointer to the upper left hand corner of the
|
||||
|
@ -46,7 +46,7 @@ class nsIFontMetrics : public nsISupports
|
||||
// XXX what about encoding, where do we put that? MMP
|
||||
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IFONT_METRICS_IID; return iid; }
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFONT_METRICS_IID)
|
||||
|
||||
/**
|
||||
* Initialize the font metrics. Call this after creating the font metrics.
|
||||
|
@ -56,6 +56,7 @@ class nsIImage : public nsISupports
|
||||
{
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAGE_IID)
|
||||
|
||||
/**
|
||||
* Build and initialize the nsIImage
|
||||
|
@ -53,7 +53,7 @@ class nsIURLGroup;
|
||||
class nsIImageGroup : public nsISupports
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IIMAGEGROUP_IID; return iid; }
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAGEGROUP_IID)
|
||||
|
||||
/**
|
||||
* Initialize an image group with a device context. All images
|
||||
|
@ -47,6 +47,8 @@ typedef enum
|
||||
class nsIImageManager : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAGEMANAGER_IID)
|
||||
|
||||
/// Initialization method to be called before use
|
||||
virtual nsresult Init() = 0;
|
||||
|
||||
|
@ -106,6 +106,8 @@ typedef enum {
|
||||
*/
|
||||
class nsIImageRequestObserver : public nsISupports {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAGEREQUESTOBSERVER_IID)
|
||||
|
||||
/**
|
||||
* Notify the observer of some significant image event. The parameter
|
||||
* values depend on the notification type as specified below.
|
||||
@ -154,6 +156,8 @@ public:
|
||||
*/
|
||||
class nsIImageGroupObserver : public nsISupports {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAGEGROUPOBSERVER_IID)
|
||||
|
||||
/**
|
||||
* Notify the observer of some significant image group event.
|
||||
*
|
||||
|
@ -39,7 +39,7 @@ class nsIImage;
|
||||
*/
|
||||
class nsIImageRequest : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IIMAGEREQUEST_IID; return iid; }
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAGEREQUEST_IID)
|
||||
|
||||
/// @return the image object associated with the request.
|
||||
virtual nsIImage* GetImage() = 0;
|
||||
|
@ -58,6 +58,8 @@ typedef struct
|
||||
class nsIRegion : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IREGION_IID)
|
||||
|
||||
virtual nsresult Init(void) = 0;
|
||||
|
||||
/**
|
||||
@ -244,4 +246,4 @@ public:
|
||||
NS_IMETHOD GetRegionComplexity(nsRegionComplexity &aComplexity) const = 0;
|
||||
};
|
||||
|
||||
#endif // nsRIegion_h___
|
||||
#endif // nsIRegion_h___
|
||||
|
@ -69,7 +69,7 @@ typedef void * nsDrawingSurface;
|
||||
class nsIRenderingContext : public nsISupports
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IRENDERING_CONTEXT_IID; return iid; }
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRENDERING_CONTEXT_IID)
|
||||
|
||||
//TBD: bind/unbind, transformation of scalars (hacky),
|
||||
//potential drawmode for selection, polygons. MMP
|
||||
|
@ -28,6 +28,7 @@
|
||||
class nsIDeviceContextSpec : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDEVICE_CONTEXT_SPEC_IID)
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -30,6 +30,7 @@ class nsIDeviceContextSpec;
|
||||
class nsIDeviceContextSpecFactory : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDEVICE_CONTEXT_SPEC_FACTORY_IID)
|
||||
/**
|
||||
* Initialize the device context spec factory
|
||||
* @return error status
|
||||
|
Loading…
x
Reference in New Issue
Block a user