LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIScrollBoxObject.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/nsIScrollBoxObject.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIScrollBoxObject_h__
       6                 : #define __gen_nsIScrollBoxObject_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                 : 
      20                 : /* starting interface:    nsIScrollBoxObject */
      21                 : #define NS_ISCROLLBOXOBJECT_IID_STR "56e2ada8-4631-11d4-ba11-001083023c1e"
      22                 : 
      23                 : #define NS_ISCROLLBOXOBJECT_IID \
      24                 :   {0x56e2ada8, 0x4631, 0x11d4, \
      25                 :     { 0xba, 0x11, 0x00, 0x10, 0x83, 0x02, 0x3c, 0x1e }}
      26                 : 
      27               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScrollBoxObject : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCROLLBOXOBJECT_IID)
      31                 : 
      32                 :   /* void scrollTo (in long x, in long y); */
      33                 :   NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y) = 0;
      34                 : 
      35                 :   /* void scrollBy (in long dx, in long dy); */
      36                 :   NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy) = 0;
      37                 : 
      38                 :   /* void scrollByLine (in long dlines); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLine(PRInt32 dlines) = 0;
      40                 : 
      41                 :   /* void scrollByIndex (in long dindexes); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByIndex(PRInt32 dindexes) = 0;
      43                 : 
      44                 :   /* void scrollToLine (in long line); */
      45                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToLine(PRInt32 line) = 0;
      46                 : 
      47                 :   /* void scrollToElement (in nsIDOMElement child); */
      48                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToElement(nsIDOMElement *child) = 0;
      49                 : 
      50                 :   /* void scrollToIndex (in long index); */
      51                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 index) = 0;
      52                 : 
      53                 :   /* void getPosition (out long x, out long y); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM) = 0;
      55                 : 
      56                 :   /* void getScrolledSize (out long width, out long height); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetScrolledSize(PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) = 0;
      58                 : 
      59                 :   /* void ensureElementIsVisible (in nsIDOMElement child); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child) = 0;
      61                 : 
      62                 :   /* void ensureIndexIsVisible (in long index); */
      63                 :   NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 index) = 0;
      64                 : 
      65                 :   /* void ensureLineIsVisible (in long line); */
      66                 :   NS_SCRIPTABLE NS_IMETHOD EnsureLineIsVisible(PRInt32 line) = 0;
      67                 : 
      68                 : };
      69                 : 
      70                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIScrollBoxObject, NS_ISCROLLBOXOBJECT_IID)
      71                 : 
      72                 : /* Use this macro when declaring classes that implement this interface. */
      73                 : #define NS_DECL_NSISCROLLBOXOBJECT \
      74                 :   NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLine(PRInt32 dlines); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByIndex(PRInt32 dindexes); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToLine(PRInt32 line); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToElement(nsIDOMElement *child); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 index); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetScrolledSize(PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 index); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD EnsureLineIsVisible(PRInt32 line); 
      86                 : 
      87                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      88                 : #define NS_FORWARD_NSISCROLLBOXOBJECT(_to) \
      89                 :   NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y) { return _to ScrollTo(x, y); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy) { return _to ScrollBy(dx, dy); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLine(PRInt32 dlines) { return _to ScrollByLine(dlines); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByIndex(PRInt32 dindexes) { return _to ScrollByIndex(dindexes); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToLine(PRInt32 line) { return _to ScrollToLine(line); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToElement(nsIDOMElement *child) { return _to ScrollToElement(child); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 index) { return _to ScrollToIndex(index); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM) { return _to GetPosition(x, y); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetScrolledSize(PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return _to GetScrolledSize(width, height); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child) { return _to EnsureElementIsVisible(child); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 index) { return _to EnsureIndexIsVisible(index); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD EnsureLineIsVisible(PRInt32 line) { return _to EnsureLineIsVisible(line); } 
     101                 : 
     102                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     103                 : #define NS_FORWARD_SAFE_NSISCROLLBOXOBJECT(_to) \
     104                 :   NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollTo(x, y); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollBy(dx, dy); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLine(PRInt32 dlines) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByLine(dlines); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByIndex(PRInt32 dindexes) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByIndex(dindexes); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToLine(PRInt32 line) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToLine(line); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToElement(nsIDOMElement *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToElement(child); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToIndex(index); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(x, y); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetScrolledSize(PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrolledSize(width, height); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureElementIsVisible(child); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureIndexIsVisible(index); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD EnsureLineIsVisible(PRInt32 line) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureLineIsVisible(line); } 
     116                 : 
     117                 : #if 0
     118                 : /* Use the code below as a template for the implementation class for this interface. */
     119                 : 
     120                 : /* Header file */
     121                 : class nsScrollBoxObject : public nsIScrollBoxObject
     122                 : {
     123                 : public:
     124                 :   NS_DECL_ISUPPORTS
     125                 :   NS_DECL_NSISCROLLBOXOBJECT
     126                 : 
     127                 :   nsScrollBoxObject();
     128                 : 
     129                 : private:
     130                 :   ~nsScrollBoxObject();
     131                 : 
     132                 : protected:
     133                 :   /* additional members */
     134                 : };
     135                 : 
     136                 : /* Implementation file */
     137                 : NS_IMPL_ISUPPORTS1(nsScrollBoxObject, nsIScrollBoxObject)
     138                 : 
     139                 : nsScrollBoxObject::nsScrollBoxObject()
     140                 : {
     141                 :   /* member initializers and constructor code */
     142                 : }
     143                 : 
     144                 : nsScrollBoxObject::~nsScrollBoxObject()
     145                 : {
     146                 :   /* destructor code */
     147                 : }
     148                 : 
     149                 : /* void scrollTo (in long x, in long y); */
     150                 : NS_IMETHODIMP nsScrollBoxObject::ScrollTo(PRInt32 x, PRInt32 y)
     151                 : {
     152                 :     return NS_ERROR_NOT_IMPLEMENTED;
     153                 : }
     154                 : 
     155                 : /* void scrollBy (in long dx, in long dy); */
     156                 : NS_IMETHODIMP nsScrollBoxObject::ScrollBy(PRInt32 dx, PRInt32 dy)
     157                 : {
     158                 :     return NS_ERROR_NOT_IMPLEMENTED;
     159                 : }
     160                 : 
     161                 : /* void scrollByLine (in long dlines); */
     162                 : NS_IMETHODIMP nsScrollBoxObject::ScrollByLine(PRInt32 dlines)
     163                 : {
     164                 :     return NS_ERROR_NOT_IMPLEMENTED;
     165                 : }
     166                 : 
     167                 : /* void scrollByIndex (in long dindexes); */
     168                 : NS_IMETHODIMP nsScrollBoxObject::ScrollByIndex(PRInt32 dindexes)
     169                 : {
     170                 :     return NS_ERROR_NOT_IMPLEMENTED;
     171                 : }
     172                 : 
     173                 : /* void scrollToLine (in long line); */
     174                 : NS_IMETHODIMP nsScrollBoxObject::ScrollToLine(PRInt32 line)
     175                 : {
     176                 :     return NS_ERROR_NOT_IMPLEMENTED;
     177                 : }
     178                 : 
     179                 : /* void scrollToElement (in nsIDOMElement child); */
     180                 : NS_IMETHODIMP nsScrollBoxObject::ScrollToElement(nsIDOMElement *child)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : 
     185                 : /* void scrollToIndex (in long index); */
     186                 : NS_IMETHODIMP nsScrollBoxObject::ScrollToIndex(PRInt32 index)
     187                 : {
     188                 :     return NS_ERROR_NOT_IMPLEMENTED;
     189                 : }
     190                 : 
     191                 : /* void getPosition (out long x, out long y); */
     192                 : NS_IMETHODIMP nsScrollBoxObject::GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM)
     193                 : {
     194                 :     return NS_ERROR_NOT_IMPLEMENTED;
     195                 : }
     196                 : 
     197                 : /* void getScrolledSize (out long width, out long height); */
     198                 : NS_IMETHODIMP nsScrollBoxObject::GetScrolledSize(PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM)
     199                 : {
     200                 :     return NS_ERROR_NOT_IMPLEMENTED;
     201                 : }
     202                 : 
     203                 : /* void ensureElementIsVisible (in nsIDOMElement child); */
     204                 : NS_IMETHODIMP nsScrollBoxObject::EnsureElementIsVisible(nsIDOMElement *child)
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* void ensureIndexIsVisible (in long index); */
     210                 : NS_IMETHODIMP nsScrollBoxObject::EnsureIndexIsVisible(PRInt32 index)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : 
     215                 : /* void ensureLineIsVisible (in long line); */
     216                 : NS_IMETHODIMP nsScrollBoxObject::EnsureLineIsVisible(PRInt32 line)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* End of implementation class template. */
     222                 : #endif
     223                 : 
     224                 : nsresult
     225                 : NS_NewScrollBoxObject(nsIBoxObject** aResult);
     226                 : 
     227                 : #endif /* __gen_nsIScrollBoxObject_h__ */

Generated by: LCOV version 1.7