LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsITypeAheadFind.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsITypeAheadFind.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsITypeAheadFind_h__
       6             : #define __gen_nsITypeAheadFind_h__
       7             : 
       8             : 
       9             : #ifndef __gen_domstubs_h__
      10             : #include "domstubs.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsISupports_h__
      14             : #include "nsISupports.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : class mozIDOMWindow; /* forward declaration */
      22             : 
      23             : class nsIDocShell; /* forward declaration */
      24             : 
      25             : 
      26             : /* starting interface:    nsITypeAheadFind */
      27             : #define NS_ITYPEAHEADFIND_IID_STR "ae501e28-c57f-4692-ac74-410e1bed98b7"
      28             : 
      29             : #define NS_ITYPEAHEADFIND_IID \
      30             :   {0xae501e28, 0xc57f, 0x4692, \
      31             :     { 0xac, 0x74, 0x41, 0x0e, 0x1b, 0xed, 0x98, 0xb7 }}
      32             : 
      33           0 : class NS_NO_VTABLE nsITypeAheadFind : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITYPEAHEADFIND_IID)
      37             : 
      38             :   /* void init (in nsIDocShell aDocShell); */
      39             :   NS_IMETHOD Init(nsIDocShell *aDocShell) = 0;
      40             : 
      41             :   /* unsigned short find (in AString aSearchString, in boolean aLinksOnly); */
      42             :   NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, uint16_t *_retval) = 0;
      43             : 
      44             :   /* unsigned short findAgain (in boolean findBackwards, in boolean aLinksOnly); */
      45             :   NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, uint16_t *_retval) = 0;
      46             : 
      47             :   /* nsIDOMRange getFoundRange (); */
      48             :   NS_IMETHOD GetFoundRange(nsIDOMRange * *_retval) = 0;
      49             : 
      50             :   /* void setDocShell (in nsIDocShell aDocShell); */
      51             :   NS_IMETHOD SetDocShell(nsIDocShell *aDocShell) = 0;
      52             : 
      53             :   /* void setSelectionModeAndRepaint (in short toggle); */
      54             :   NS_IMETHOD SetSelectionModeAndRepaint(int16_t toggle) = 0;
      55             : 
      56             :   /* void collapseSelection (); */
      57             :   NS_IMETHOD CollapseSelection(void) = 0;
      58             : 
      59             :   /* boolean isRangeVisible (in nsIDOMRange aRange, in boolean aMustBeInViewPort); */
      60             :   NS_IMETHOD IsRangeVisible(nsIDOMRange *aRange, bool aMustBeInViewPort, bool *_retval) = 0;
      61             : 
      62             :   /* readonly attribute AString searchString; */
      63             :   NS_IMETHOD GetSearchString(nsAString & aSearchString) = 0;
      64             : 
      65             :   /* attribute boolean caseSensitive; */
      66             :   NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) = 0;
      67             :   NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) = 0;
      68             : 
      69             :   /* attribute boolean entireWord; */
      70             :   NS_IMETHOD GetEntireWord(bool *aEntireWord) = 0;
      71             :   NS_IMETHOD SetEntireWord(bool aEntireWord) = 0;
      72             : 
      73             :   /* readonly attribute nsIDOMElement foundLink; */
      74             :   NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink) = 0;
      75             : 
      76             :   /* readonly attribute nsIDOMElement foundEditable; */
      77             :   NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable) = 0;
      78             : 
      79             :   /* readonly attribute mozIDOMWindow currentWindow; */
      80             :   NS_IMETHOD GetCurrentWindow(mozIDOMWindow * *aCurrentWindow) = 0;
      81             : 
      82             :   enum {
      83             :     FIND_FOUND = 0U,
      84             :     FIND_NOTFOUND = 1U,
      85             :     FIND_WRAPPED = 2U,
      86             :     FIND_PENDING = 3U
      87             :   };
      88             : 
      89             : };
      90             : 
      91             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITypeAheadFind, NS_ITYPEAHEADFIND_IID)
      92             : 
      93             : /* Use this macro when declaring classes that implement this interface. */
      94             : #define NS_DECL_NSITYPEAHEADFIND \
      95             :   NS_IMETHOD Init(nsIDocShell *aDocShell) override; \
      96             :   NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, uint16_t *_retval) override; \
      97             :   NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, uint16_t *_retval) override; \
      98             :   NS_IMETHOD GetFoundRange(nsIDOMRange * *_retval) override; \
      99             :   NS_IMETHOD SetDocShell(nsIDocShell *aDocShell) override; \
     100             :   NS_IMETHOD SetSelectionModeAndRepaint(int16_t toggle) override; \
     101             :   NS_IMETHOD CollapseSelection(void) override; \
     102             :   NS_IMETHOD IsRangeVisible(nsIDOMRange *aRange, bool aMustBeInViewPort, bool *_retval) override; \
     103             :   NS_IMETHOD GetSearchString(nsAString & aSearchString) override; \
     104             :   NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) override; \
     105             :   NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) override; \
     106             :   NS_IMETHOD GetEntireWord(bool *aEntireWord) override; \
     107             :   NS_IMETHOD SetEntireWord(bool aEntireWord) override; \
     108             :   NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink) override; \
     109             :   NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable) override; \
     110             :   NS_IMETHOD GetCurrentWindow(mozIDOMWindow * *aCurrentWindow) override; \
     111             : 
     112             : /* Use this macro when declaring the members of this interface when the
     113             :    class doesn't implement the interface. This is useful for forwarding. */
     114             : #define NS_DECL_NON_VIRTUAL_NSITYPEAHEADFIND \
     115             :   nsresult Init(nsIDocShell *aDocShell); \
     116             :   nsresult Find(const nsAString & aSearchString, bool aLinksOnly, uint16_t *_retval); \
     117             :   nsresult FindAgain(bool findBackwards, bool aLinksOnly, uint16_t *_retval); \
     118             :   nsresult GetFoundRange(nsIDOMRange * *_retval); \
     119             :   nsresult SetDocShell(nsIDocShell *aDocShell); \
     120             :   nsresult SetSelectionModeAndRepaint(int16_t toggle); \
     121             :   nsresult CollapseSelection(void); \
     122             :   nsresult IsRangeVisible(nsIDOMRange *aRange, bool aMustBeInViewPort, bool *_retval); \
     123             :   nsresult GetSearchString(nsAString & aSearchString); \
     124             :   nsresult GetCaseSensitive(bool *aCaseSensitive); \
     125             :   nsresult SetCaseSensitive(bool aCaseSensitive); \
     126             :   nsresult GetEntireWord(bool *aEntireWord); \
     127             :   nsresult SetEntireWord(bool aEntireWord); \
     128             :   nsresult GetFoundLink(nsIDOMElement * *aFoundLink); \
     129             :   nsresult GetFoundEditable(nsIDOMElement * *aFoundEditable); \
     130             :   nsresult GetCurrentWindow(mozIDOMWindow * *aCurrentWindow); \
     131             : 
     132             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     133             : #define NS_FORWARD_NSITYPEAHEADFIND(_to) \
     134             :   NS_IMETHOD Init(nsIDocShell *aDocShell) override { return _to Init(aDocShell); } \
     135             :   NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, uint16_t *_retval) override { return _to Find(aSearchString, aLinksOnly, _retval); } \
     136             :   NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, uint16_t *_retval) override { return _to FindAgain(findBackwards, aLinksOnly, _retval); } \
     137             :   NS_IMETHOD GetFoundRange(nsIDOMRange * *_retval) override { return _to GetFoundRange(_retval); } \
     138             :   NS_IMETHOD SetDocShell(nsIDocShell *aDocShell) override { return _to SetDocShell(aDocShell); } \
     139             :   NS_IMETHOD SetSelectionModeAndRepaint(int16_t toggle) override { return _to SetSelectionModeAndRepaint(toggle); } \
     140             :   NS_IMETHOD CollapseSelection(void) override { return _to CollapseSelection(); } \
     141             :   NS_IMETHOD IsRangeVisible(nsIDOMRange *aRange, bool aMustBeInViewPort, bool *_retval) override { return _to IsRangeVisible(aRange, aMustBeInViewPort, _retval); } \
     142             :   NS_IMETHOD GetSearchString(nsAString & aSearchString) override { return _to GetSearchString(aSearchString); } \
     143             :   NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) override { return _to GetCaseSensitive(aCaseSensitive); } \
     144             :   NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) override { return _to SetCaseSensitive(aCaseSensitive); } \
     145             :   NS_IMETHOD GetEntireWord(bool *aEntireWord) override { return _to GetEntireWord(aEntireWord); } \
     146             :   NS_IMETHOD SetEntireWord(bool aEntireWord) override { return _to SetEntireWord(aEntireWord); } \
     147             :   NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink) override { return _to GetFoundLink(aFoundLink); } \
     148             :   NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable) override { return _to GetFoundEditable(aFoundEditable); } \
     149             :   NS_IMETHOD GetCurrentWindow(mozIDOMWindow * *aCurrentWindow) override { return _to GetCurrentWindow(aCurrentWindow); } \
     150             : 
     151             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     152             : #define NS_FORWARD_SAFE_NSITYPEAHEADFIND(_to) \
     153             :   NS_IMETHOD Init(nsIDocShell *aDocShell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDocShell); } \
     154             :   NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, uint16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Find(aSearchString, aLinksOnly, _retval); } \
     155             :   NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, uint16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAgain(findBackwards, aLinksOnly, _retval); } \
     156             :   NS_IMETHOD GetFoundRange(nsIDOMRange * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFoundRange(_retval); } \
     157             :   NS_IMETHOD SetDocShell(nsIDocShell *aDocShell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocShell(aDocShell); } \
     158             :   NS_IMETHOD SetSelectionModeAndRepaint(int16_t toggle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionModeAndRepaint(toggle); } \
     159             :   NS_IMETHOD CollapseSelection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CollapseSelection(); } \
     160             :   NS_IMETHOD IsRangeVisible(nsIDOMRange *aRange, bool aMustBeInViewPort, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsRangeVisible(aRange, aMustBeInViewPort, _retval); } \
     161             :   NS_IMETHOD GetSearchString(nsAString & aSearchString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \
     162             :   NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaseSensitive(aCaseSensitive); } \
     163             :   NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaseSensitive(aCaseSensitive); } \
     164             :   NS_IMETHOD GetEntireWord(bool *aEntireWord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntireWord(aEntireWord); } \
     165             :   NS_IMETHOD SetEntireWord(bool aEntireWord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEntireWord(aEntireWord); } \
     166             :   NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFoundLink(aFoundLink); } \
     167             :   NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFoundEditable(aFoundEditable); } \
     168             :   NS_IMETHOD GetCurrentWindow(mozIDOMWindow * *aCurrentWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentWindow(aCurrentWindow); } \
     169             : 
     170             : #if 0
     171             : /* Use the code below as a template for the implementation class for this interface. */
     172             : 
     173             : /* Header file */
     174             : class nsTypeAheadFind : public nsITypeAheadFind
     175             : {
     176             : public:
     177             :   NS_DECL_ISUPPORTS
     178             :   NS_DECL_NSITYPEAHEADFIND
     179             : 
     180             :   nsTypeAheadFind();
     181             : 
     182             : private:
     183             :   ~nsTypeAheadFind();
     184             : 
     185             : protected:
     186             :   /* additional members */
     187             : };
     188             : 
     189             : /* Implementation file */
     190             : NS_IMPL_ISUPPORTS(nsTypeAheadFind, nsITypeAheadFind)
     191             : 
     192             : nsTypeAheadFind::nsTypeAheadFind()
     193             : {
     194             :   /* member initializers and constructor code */
     195             : }
     196             : 
     197             : nsTypeAheadFind::~nsTypeAheadFind()
     198             : {
     199             :   /* destructor code */
     200             : }
     201             : 
     202             : /* void init (in nsIDocShell aDocShell); */
     203             : NS_IMETHODIMP nsTypeAheadFind::Init(nsIDocShell *aDocShell)
     204             : {
     205             :     return NS_ERROR_NOT_IMPLEMENTED;
     206             : }
     207             : 
     208             : /* unsigned short find (in AString aSearchString, in boolean aLinksOnly); */
     209             : NS_IMETHODIMP nsTypeAheadFind::Find(const nsAString & aSearchString, bool aLinksOnly, uint16_t *_retval)
     210             : {
     211             :     return NS_ERROR_NOT_IMPLEMENTED;
     212             : }
     213             : 
     214             : /* unsigned short findAgain (in boolean findBackwards, in boolean aLinksOnly); */
     215             : NS_IMETHODIMP nsTypeAheadFind::FindAgain(bool findBackwards, bool aLinksOnly, uint16_t *_retval)
     216             : {
     217             :     return NS_ERROR_NOT_IMPLEMENTED;
     218             : }
     219             : 
     220             : /* nsIDOMRange getFoundRange (); */
     221             : NS_IMETHODIMP nsTypeAheadFind::GetFoundRange(nsIDOMRange * *_retval)
     222             : {
     223             :     return NS_ERROR_NOT_IMPLEMENTED;
     224             : }
     225             : 
     226             : /* void setDocShell (in nsIDocShell aDocShell); */
     227             : NS_IMETHODIMP nsTypeAheadFind::SetDocShell(nsIDocShell *aDocShell)
     228             : {
     229             :     return NS_ERROR_NOT_IMPLEMENTED;
     230             : }
     231             : 
     232             : /* void setSelectionModeAndRepaint (in short toggle); */
     233             : NS_IMETHODIMP nsTypeAheadFind::SetSelectionModeAndRepaint(int16_t toggle)
     234             : {
     235             :     return NS_ERROR_NOT_IMPLEMENTED;
     236             : }
     237             : 
     238             : /* void collapseSelection (); */
     239             : NS_IMETHODIMP nsTypeAheadFind::CollapseSelection()
     240             : {
     241             :     return NS_ERROR_NOT_IMPLEMENTED;
     242             : }
     243             : 
     244             : /* boolean isRangeVisible (in nsIDOMRange aRange, in boolean aMustBeInViewPort); */
     245             : NS_IMETHODIMP nsTypeAheadFind::IsRangeVisible(nsIDOMRange *aRange, bool aMustBeInViewPort, bool *_retval)
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* readonly attribute AString searchString; */
     251             : NS_IMETHODIMP nsTypeAheadFind::GetSearchString(nsAString & aSearchString)
     252             : {
     253             :     return NS_ERROR_NOT_IMPLEMENTED;
     254             : }
     255             : 
     256             : /* attribute boolean caseSensitive; */
     257             : NS_IMETHODIMP nsTypeAheadFind::GetCaseSensitive(bool *aCaseSensitive)
     258             : {
     259             :     return NS_ERROR_NOT_IMPLEMENTED;
     260             : }
     261             : NS_IMETHODIMP nsTypeAheadFind::SetCaseSensitive(bool aCaseSensitive)
     262             : {
     263             :     return NS_ERROR_NOT_IMPLEMENTED;
     264             : }
     265             : 
     266             : /* attribute boolean entireWord; */
     267             : NS_IMETHODIMP nsTypeAheadFind::GetEntireWord(bool *aEntireWord)
     268             : {
     269             :     return NS_ERROR_NOT_IMPLEMENTED;
     270             : }
     271             : NS_IMETHODIMP nsTypeAheadFind::SetEntireWord(bool aEntireWord)
     272             : {
     273             :     return NS_ERROR_NOT_IMPLEMENTED;
     274             : }
     275             : 
     276             : /* readonly attribute nsIDOMElement foundLink; */
     277             : NS_IMETHODIMP nsTypeAheadFind::GetFoundLink(nsIDOMElement * *aFoundLink)
     278             : {
     279             :     return NS_ERROR_NOT_IMPLEMENTED;
     280             : }
     281             : 
     282             : /* readonly attribute nsIDOMElement foundEditable; */
     283             : NS_IMETHODIMP nsTypeAheadFind::GetFoundEditable(nsIDOMElement * *aFoundEditable)
     284             : {
     285             :     return NS_ERROR_NOT_IMPLEMENTED;
     286             : }
     287             : 
     288             : /* readonly attribute mozIDOMWindow currentWindow; */
     289             : NS_IMETHODIMP nsTypeAheadFind::GetCurrentWindow(mozIDOMWindow * *aCurrentWindow)
     290             : {
     291             :     return NS_ERROR_NOT_IMPLEMENTED;
     292             : }
     293             : 
     294             : /* End of implementation class template. */
     295             : #endif
     296             : 
     297             : 
     298             : #endif /* __gen_nsITypeAheadFind_h__ */

Generated by: LCOV version 1.13