LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPopupBoxObject.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/layout/xul/base/public/nsIPopupBoxObject.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIPopupBoxObject_h__
       6                 : #define __gen_nsIPopupBoxObject_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIBoxObject_h__
      10                 : #include "nsIBoxObject.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : class nsIDOMElement; /* forward declaration */
      18                 : 
      19                 : class nsIDOMNode; /* forward declaration */
      20                 : 
      21                 : class nsIDOMEvent; /* forward declaration */
      22                 : 
      23                 : class nsIDOMClientRect; /* forward declaration */
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsIPopupBoxObject */
      27                 : #define NS_IPOPUPBOXOBJECT_IID_STR "6ad1b199-95d3-448b-98d7-896bce3a1dcd"
      28                 : 
      29                 : #define NS_IPOPUPBOXOBJECT_IID \
      30                 :   {0x6ad1b199, 0x95d3, 0x448b, \
      31                 :     { 0x98, 0xd7, 0x89, 0x6b, 0xce, 0x3a, 0x1d, 0xcd }}
      32                 : 
      33               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPopupBoxObject : public nsISupports {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPOPUPBOXOBJECT_IID)
      37                 : 
      38                 :   /* void showPopup (in nsIDOMElement srcContent, in nsIDOMElement popupContent, in long xpos, in long ypos, in wstring popupType, in wstring anchorAlignment, in wstring popupAlignment); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar * popupType, const PRUnichar * anchorAlignment, const PRUnichar * popupAlignment) = 0;
      40                 : 
      41                 :   /* void hidePopup (); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD HidePopup(void) = 0;
      43                 : 
      44                 :   /* attribute boolean autoPosition; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetAutoPosition(bool *aAutoPosition) = 0;
      46                 :   NS_SCRIPTABLE NS_IMETHOD SetAutoPosition(bool aAutoPosition) = 0;
      47                 : 
      48                 :   /* void enableKeyboardNavigator (in boolean enableKeyboardNavigator); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD EnableKeyboardNavigator(bool enableKeyboardNavigator) = 0;
      50                 : 
      51                 :   /* void enableRollup (in boolean enableRollup); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD EnableRollup(bool enableRollup) = 0;
      53                 : 
      54                 :   enum {
      55                 :     ROLLUP_DEFAULT = 0U,
      56                 :     ROLLUP_CONSUME = 1U,
      57                 :     ROLLUP_NO_CONSUME = 2U
      58                 :   };
      59                 : 
      60                 :   /* void setConsumeRollupEvent (in PRUint32 consume); */
      61                 :   NS_SCRIPTABLE NS_IMETHOD SetConsumeRollupEvent(PRUint32 consume) = 0;
      62                 : 
      63                 :   /* void sizeTo (in long width, in long height); */
      64                 :   NS_SCRIPTABLE NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height) = 0;
      65                 : 
      66                 :   /* void moveTo (in long left, in long top); */
      67                 :   NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top) = 0;
      68                 : 
      69                 :   /* void openPopup (in nsIDOMElement anchorElement, in AString position, in long x, in long y, in boolean isContextMenu, in boolean attributesOverride, in nsIDOMEvent triggerEvent); */
      70                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopup(nsIDOMElement *anchorElement, const nsAString & position, PRInt32 x, PRInt32 y, bool isContextMenu, bool attributesOverride, nsIDOMEvent *triggerEvent) = 0;
      71                 : 
      72                 :   /* void openPopupAtScreen (in long x, in long y, in boolean isContextMenu, in nsIDOMEvent triggerEvent); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopupAtScreen(PRInt32 x, PRInt32 y, bool isContextMenu, nsIDOMEvent *triggerEvent) = 0;
      74                 : 
      75                 :   /* readonly attribute AString popupState; */
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetPopupState(nsAString & aPopupState) = 0;
      77                 : 
      78                 :   /* readonly attribute nsIDOMNode triggerNode; */
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetTriggerNode(nsIDOMNode * *aTriggerNode) = 0;
      80                 : 
      81                 :   /* readonly attribute nsIDOMElement anchorNode; */
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetAnchorNode(nsIDOMElement * *aAnchorNode) = 0;
      83                 : 
      84                 :   /* nsIDOMClientRect getOuterScreenRect (); */
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterScreenRect(nsIDOMClientRect * *_retval NS_OUTPARAM) = 0;
      86                 : 
      87                 : };
      88                 : 
      89                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPopupBoxObject, NS_IPOPUPBOXOBJECT_IID)
      90                 : 
      91                 : /* Use this macro when declaring classes that implement this interface. */
      92                 : #define NS_DECL_NSIPOPUPBOXOBJECT \
      93                 :   NS_SCRIPTABLE NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar * popupType, const PRUnichar * anchorAlignment, const PRUnichar * popupAlignment); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD HidePopup(void); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetAutoPosition(bool *aAutoPosition); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD SetAutoPosition(bool aAutoPosition); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD EnableKeyboardNavigator(bool enableKeyboardNavigator); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD EnableRollup(bool enableRollup); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD SetConsumeRollupEvent(PRUint32 consume); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopup(nsIDOMElement *anchorElement, const nsAString & position, PRInt32 x, PRInt32 y, bool isContextMenu, bool attributesOverride, nsIDOMEvent *triggerEvent); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopupAtScreen(PRInt32 x, PRInt32 y, bool isContextMenu, nsIDOMEvent *triggerEvent); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetPopupState(nsAString & aPopupState); \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetTriggerNode(nsIDOMNode * *aTriggerNode); \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetAnchorNode(nsIDOMElement * *aAnchorNode); \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterScreenRect(nsIDOMClientRect * *_retval NS_OUTPARAM); 
     108                 : 
     109                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     110                 : #define NS_FORWARD_NSIPOPUPBOXOBJECT(_to) \
     111                 :   NS_SCRIPTABLE NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar * popupType, const PRUnichar * anchorAlignment, const PRUnichar * popupAlignment) { return _to ShowPopup(srcContent, popupContent, xpos, ypos, popupType, anchorAlignment, popupAlignment); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD HidePopup(void) { return _to HidePopup(); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetAutoPosition(bool *aAutoPosition) { return _to GetAutoPosition(aAutoPosition); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD SetAutoPosition(bool aAutoPosition) { return _to SetAutoPosition(aAutoPosition); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD EnableKeyboardNavigator(bool enableKeyboardNavigator) { return _to EnableKeyboardNavigator(enableKeyboardNavigator); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD EnableRollup(bool enableRollup) { return _to EnableRollup(enableRollup); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD SetConsumeRollupEvent(PRUint32 consume) { return _to SetConsumeRollupEvent(consume); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height) { return _to SizeTo(width, height); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top) { return _to MoveTo(left, top); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopup(nsIDOMElement *anchorElement, const nsAString & position, PRInt32 x, PRInt32 y, bool isContextMenu, bool attributesOverride, nsIDOMEvent *triggerEvent) { return _to OpenPopup(anchorElement, position, x, y, isContextMenu, attributesOverride, triggerEvent); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopupAtScreen(PRInt32 x, PRInt32 y, bool isContextMenu, nsIDOMEvent *triggerEvent) { return _to OpenPopupAtScreen(x, y, isContextMenu, triggerEvent); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetPopupState(nsAString & aPopupState) { return _to GetPopupState(aPopupState); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetTriggerNode(nsIDOMNode * *aTriggerNode) { return _to GetTriggerNode(aTriggerNode); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetAnchorNode(nsIDOMElement * *aAnchorNode) { return _to GetAnchorNode(aAnchorNode); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterScreenRect(nsIDOMClientRect * *_retval NS_OUTPARAM) { return _to GetOuterScreenRect(_retval); } 
     126                 : 
     127                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     128                 : #define NS_FORWARD_SAFE_NSIPOPUPBOXOBJECT(_to) \
     129                 :   NS_SCRIPTABLE NS_IMETHOD ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar * popupType, const PRUnichar * anchorAlignment, const PRUnichar * popupAlignment) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPopup(srcContent, popupContent, xpos, ypos, popupType, anchorAlignment, popupAlignment); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD HidePopup(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HidePopup(); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD GetAutoPosition(bool *aAutoPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoPosition(aAutoPosition); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD SetAutoPosition(bool aAutoPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutoPosition(aAutoPosition); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD EnableKeyboardNavigator(bool enableKeyboardNavigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableKeyboardNavigator(enableKeyboardNavigator); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD EnableRollup(bool enableRollup) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableRollup(enableRollup); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD SetConsumeRollupEvent(PRUint32 consume) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetConsumeRollupEvent(consume); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD SizeTo(PRInt32 width, PRInt32 height) { return !_to ? NS_ERROR_NULL_POINTER : _to->SizeTo(width, height); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 left, PRInt32 top) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(left, top); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopup(nsIDOMElement *anchorElement, const nsAString & position, PRInt32 x, PRInt32 y, bool isContextMenu, bool attributesOverride, nsIDOMEvent *triggerEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenPopup(anchorElement, position, x, y, isContextMenu, attributesOverride, triggerEvent); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD OpenPopupAtScreen(PRInt32 x, PRInt32 y, bool isContextMenu, nsIDOMEvent *triggerEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenPopupAtScreen(x, y, isContextMenu, triggerEvent); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD GetPopupState(nsAString & aPopupState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupState(aPopupState); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetTriggerNode(nsIDOMNode * *aTriggerNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggerNode(aTriggerNode); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetAnchorNode(nsIDOMElement * *aAnchorNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnchorNode(aAnchorNode); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetOuterScreenRect(nsIDOMClientRect * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterScreenRect(_retval); } 
     144                 : 
     145                 : #if 0
     146                 : /* Use the code below as a template for the implementation class for this interface. */
     147                 : 
     148                 : /* Header file */
     149                 : class nsPopupBoxObject : public nsIPopupBoxObject
     150                 : {
     151                 : public:
     152                 :   NS_DECL_ISUPPORTS
     153                 :   NS_DECL_NSIPOPUPBOXOBJECT
     154                 : 
     155                 :   nsPopupBoxObject();
     156                 : 
     157                 : private:
     158                 :   ~nsPopupBoxObject();
     159                 : 
     160                 : protected:
     161                 :   /* additional members */
     162                 : };
     163                 : 
     164                 : /* Implementation file */
     165                 : NS_IMPL_ISUPPORTS1(nsPopupBoxObject, nsIPopupBoxObject)
     166                 : 
     167                 : nsPopupBoxObject::nsPopupBoxObject()
     168                 : {
     169                 :   /* member initializers and constructor code */
     170                 : }
     171                 : 
     172                 : nsPopupBoxObject::~nsPopupBoxObject()
     173                 : {
     174                 :   /* destructor code */
     175                 : }
     176                 : 
     177                 : /* void showPopup (in nsIDOMElement srcContent, in nsIDOMElement popupContent, in long xpos, in long ypos, in wstring popupType, in wstring anchorAlignment, in wstring popupAlignment); */
     178                 : NS_IMETHODIMP nsPopupBoxObject::ShowPopup(nsIDOMElement *srcContent, nsIDOMElement *popupContent, PRInt32 xpos, PRInt32 ypos, const PRUnichar * popupType, const PRUnichar * anchorAlignment, const PRUnichar * popupAlignment)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : 
     183                 : /* void hidePopup (); */
     184                 : NS_IMETHODIMP nsPopupBoxObject::HidePopup()
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* attribute boolean autoPosition; */
     190                 : NS_IMETHODIMP nsPopupBoxObject::GetAutoPosition(bool *aAutoPosition)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : NS_IMETHODIMP nsPopupBoxObject::SetAutoPosition(bool aAutoPosition)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* void enableKeyboardNavigator (in boolean enableKeyboardNavigator); */
     200                 : NS_IMETHODIMP nsPopupBoxObject::EnableKeyboardNavigator(bool enableKeyboardNavigator)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* void enableRollup (in boolean enableRollup); */
     206                 : NS_IMETHODIMP nsPopupBoxObject::EnableRollup(bool enableRollup)
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : 
     211                 : /* void setConsumeRollupEvent (in PRUint32 consume); */
     212                 : NS_IMETHODIMP nsPopupBoxObject::SetConsumeRollupEvent(PRUint32 consume)
     213                 : {
     214                 :     return NS_ERROR_NOT_IMPLEMENTED;
     215                 : }
     216                 : 
     217                 : /* void sizeTo (in long width, in long height); */
     218                 : NS_IMETHODIMP nsPopupBoxObject::SizeTo(PRInt32 width, PRInt32 height)
     219                 : {
     220                 :     return NS_ERROR_NOT_IMPLEMENTED;
     221                 : }
     222                 : 
     223                 : /* void moveTo (in long left, in long top); */
     224                 : NS_IMETHODIMP nsPopupBoxObject::MoveTo(PRInt32 left, PRInt32 top)
     225                 : {
     226                 :     return NS_ERROR_NOT_IMPLEMENTED;
     227                 : }
     228                 : 
     229                 : /* void openPopup (in nsIDOMElement anchorElement, in AString position, in long x, in long y, in boolean isContextMenu, in boolean attributesOverride, in nsIDOMEvent triggerEvent); */
     230                 : NS_IMETHODIMP nsPopupBoxObject::OpenPopup(nsIDOMElement *anchorElement, const nsAString & position, PRInt32 x, PRInt32 y, bool isContextMenu, bool attributesOverride, nsIDOMEvent *triggerEvent)
     231                 : {
     232                 :     return NS_ERROR_NOT_IMPLEMENTED;
     233                 : }
     234                 : 
     235                 : /* void openPopupAtScreen (in long x, in long y, in boolean isContextMenu, in nsIDOMEvent triggerEvent); */
     236                 : NS_IMETHODIMP nsPopupBoxObject::OpenPopupAtScreen(PRInt32 x, PRInt32 y, bool isContextMenu, nsIDOMEvent *triggerEvent)
     237                 : {
     238                 :     return NS_ERROR_NOT_IMPLEMENTED;
     239                 : }
     240                 : 
     241                 : /* readonly attribute AString popupState; */
     242                 : NS_IMETHODIMP nsPopupBoxObject::GetPopupState(nsAString & aPopupState)
     243                 : {
     244                 :     return NS_ERROR_NOT_IMPLEMENTED;
     245                 : }
     246                 : 
     247                 : /* readonly attribute nsIDOMNode triggerNode; */
     248                 : NS_IMETHODIMP nsPopupBoxObject::GetTriggerNode(nsIDOMNode * *aTriggerNode)
     249                 : {
     250                 :     return NS_ERROR_NOT_IMPLEMENTED;
     251                 : }
     252                 : 
     253                 : /* readonly attribute nsIDOMElement anchorNode; */
     254                 : NS_IMETHODIMP nsPopupBoxObject::GetAnchorNode(nsIDOMElement * *aAnchorNode)
     255                 : {
     256                 :     return NS_ERROR_NOT_IMPLEMENTED;
     257                 : }
     258                 : 
     259                 : /* nsIDOMClientRect getOuterScreenRect (); */
     260                 : NS_IMETHODIMP nsPopupBoxObject::GetOuterScreenRect(nsIDOMClientRect * *_retval NS_OUTPARAM)
     261                 : {
     262                 :     return NS_ERROR_NOT_IMPLEMENTED;
     263                 : }
     264                 : 
     265                 : /* End of implementation class template. */
     266                 : #endif
     267                 : 
     268                 : nsresult
     269                 : NS_NewPopupBoxObject(nsIBoxObject** aResult);
     270                 : 
     271                 : #endif /* __gen_nsIPopupBoxObject_h__ */

Generated by: LCOV version 1.7