123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- #ifndef __gen_nsIEmbeddingSiteWindow_h__
- #define __gen_nsIEmbeddingSiteWindow_h__
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- #define NS_IEMBEDDINGSITEWINDOW_IID_STR "3e5432cd-9568-4bd1-8cbe-d50aba110743"
- #define NS_IEMBEDDINGSITEWINDOW_IID \
- {0x3e5432cd, 0x9568, 0x4bd1, \
- { 0x8c, 0xbe, 0xd5, 0x0a, 0xba, 0x11, 0x07, 0x43 }}
- class NS_NO_VTABLE nsIEmbeddingSiteWindow : public nsISupports {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEMBEDDINGSITEWINDOW_IID)
-
- enum { DIM_FLAGS_POSITION = 1U };
-
- enum { DIM_FLAGS_SIZE_INNER = 2U };
-
- enum { DIM_FLAGS_SIZE_OUTER = 4U };
-
-
- NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) = 0;
-
-
- NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) = 0;
-
-
- NS_IMETHOD SetFocus(void) = 0;
-
-
- NS_IMETHOD GetVisibility(PRBool *aVisibility) = 0;
- NS_IMETHOD SetVisibility(PRBool aVisibility) = 0;
-
-
- NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0;
- NS_IMETHOD SetTitle(const PRUnichar * aTitle) = 0;
-
-
- NS_IMETHOD GetSiteWindow(void * *aSiteWindow) = 0;
- };
- #define NS_DECL_NSIEMBEDDINGSITEWINDOW \
- NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy); \
- NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy); \
- NS_IMETHOD SetFocus(void); \
- NS_IMETHOD GetVisibility(PRBool *aVisibility); \
- NS_IMETHOD SetVisibility(PRBool aVisibility); \
- NS_IMETHOD GetTitle(PRUnichar * *aTitle); \
- NS_IMETHOD SetTitle(const PRUnichar * aTitle); \
- NS_IMETHOD GetSiteWindow(void * *aSiteWindow);
- #define NS_FORWARD_NSIEMBEDDINGSITEWINDOW(_to) \
- NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) { return _to SetDimensions(flags, x, y, cx, cy); } \
- NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) { return _to GetDimensions(flags, x, y, cx, cy); } \
- NS_IMETHOD SetFocus(void) { return _to SetFocus(); } \
- NS_IMETHOD GetVisibility(PRBool *aVisibility) { return _to GetVisibility(aVisibility); } \
- NS_IMETHOD SetVisibility(PRBool aVisibility) { return _to SetVisibility(aVisibility); } \
- NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \
- NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return _to SetTitle(aTitle); } \
- NS_IMETHOD GetSiteWindow(void * *aSiteWindow) { return _to GetSiteWindow(aSiteWindow); }
- #define NS_FORWARD_SAFE_NSIEMBEDDINGSITEWINDOW(_to) \
- NS_IMETHOD SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDimensions(flags, x, y, cx, cy); } \
- NS_IMETHOD GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDimensions(flags, x, y, cx, cy); } \
- NS_IMETHOD SetFocus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocus(); } \
- NS_IMETHOD GetVisibility(PRBool *aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisibility(aVisibility); } \
- NS_IMETHOD SetVisibility(PRBool aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisibility(aVisibility); } \
- NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
- NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
- NS_IMETHOD GetSiteWindow(void * *aSiteWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSiteWindow(aSiteWindow); }
- #if 0
- class nsEmbeddingSiteWindow : public nsIEmbeddingSiteWindow
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSIEMBEDDINGSITEWINDOW
- nsEmbeddingSiteWindow();
- private:
- ~nsEmbeddingSiteWindow();
- protected:
-
- };
- NS_IMPL_ISUPPORTS1(nsEmbeddingSiteWindow, nsIEmbeddingSiteWindow)
- nsEmbeddingSiteWindow::nsEmbeddingSiteWindow()
- {
-
- }
- nsEmbeddingSiteWindow::~nsEmbeddingSiteWindow()
- {
-
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::SetFocus()
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::GetVisibility(PRBool *aVisibility)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::SetVisibility(PRBool aVisibility)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::GetTitle(PRUnichar * *aTitle)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::SetTitle(const PRUnichar * aTitle)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsEmbeddingSiteWindow::GetSiteWindow(void * *aSiteWindow)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- #endif
- #endif
|