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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebBrowserFocus.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWebBrowserFocus_h__
       6             : #define __gen_nsIWebBrowserFocus_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.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 mozIDOMWindowProxy; /* forward declaration */
      18             : 
      19             : class nsIDOMElement; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIWebBrowserFocus */
      23             : #define NS_IWEBBROWSERFOCUS_IID_STR "7f8c754e-5b36-44be-bc96-191b49f08ea6"
      24             : 
      25             : #define NS_IWEBBROWSERFOCUS_IID \
      26             :   {0x7f8c754e, 0x5b36, 0x44be, \
      27             :     { 0xbc, 0x96, 0x19, 0x1b, 0x49, 0xf0, 0x8e, 0xa6 }}
      28             : 
      29           1 : class NS_NO_VTABLE nsIWebBrowserFocus : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERFOCUS_IID)
      33             : 
      34             :   /* void activate (); */
      35             :   NS_IMETHOD Activate(void) = 0;
      36             : 
      37             :   /* void deactivate (); */
      38             :   NS_IMETHOD Deactivate(void) = 0;
      39             : 
      40             :   /* void setFocusAtFirstElement (); */
      41             :   NS_IMETHOD SetFocusAtFirstElement(void) = 0;
      42             : 
      43             :   /* void setFocusAtLastElement (); */
      44             :   NS_IMETHOD SetFocusAtLastElement(void) = 0;
      45             : 
      46             :   /* attribute mozIDOMWindowProxy focusedWindow; */
      47             :   NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy * *aFocusedWindow) = 0;
      48             :   NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) = 0;
      49             : 
      50             :   /* attribute nsIDOMElement focusedElement; */
      51             :   NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) = 0;
      52             :   NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) = 0;
      53             : 
      54             : };
      55             : 
      56             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserFocus, NS_IWEBBROWSERFOCUS_IID)
      57             : 
      58             : /* Use this macro when declaring classes that implement this interface. */
      59             : #define NS_DECL_NSIWEBBROWSERFOCUS \
      60             :   NS_IMETHOD Activate(void) override; \
      61             :   NS_IMETHOD Deactivate(void) override; \
      62             :   NS_IMETHOD SetFocusAtFirstElement(void) override; \
      63             :   NS_IMETHOD SetFocusAtLastElement(void) override; \
      64             :   NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy * *aFocusedWindow) override; \
      65             :   NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) override; \
      66             :   NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) override; \
      67             :   NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) override; 
      68             : 
      69             : /* Use this macro when declaring the members of this interface when the
      70             :    class doesn't implement the interface. This is useful for forwarding. */
      71             : #define NS_DECL_NON_VIRTUAL_NSIWEBBROWSERFOCUS \
      72             :   nsresult Activate(void); \
      73             :   nsresult Deactivate(void); \
      74             :   nsresult SetFocusAtFirstElement(void); \
      75             :   nsresult SetFocusAtLastElement(void); \
      76             :   nsresult GetFocusedWindow(mozIDOMWindowProxy * *aFocusedWindow); \
      77             :   nsresult SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow); \
      78             :   nsresult GetFocusedElement(nsIDOMElement * *aFocusedElement); \
      79             :   nsresult SetFocusedElement(nsIDOMElement *aFocusedElement); 
      80             : 
      81             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      82             : #define NS_FORWARD_NSIWEBBROWSERFOCUS(_to) \
      83             :   NS_IMETHOD Activate(void) override { return _to Activate(); } \
      84             :   NS_IMETHOD Deactivate(void) override { return _to Deactivate(); } \
      85             :   NS_IMETHOD SetFocusAtFirstElement(void) override { return _to SetFocusAtFirstElement(); } \
      86             :   NS_IMETHOD SetFocusAtLastElement(void) override { return _to SetFocusAtLastElement(); } \
      87             :   NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy * *aFocusedWindow) override { return _to GetFocusedWindow(aFocusedWindow); } \
      88             :   NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) override { return _to SetFocusedWindow(aFocusedWindow); } \
      89             :   NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) override { return _to GetFocusedElement(aFocusedElement); } \
      90             :   NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) override { return _to SetFocusedElement(aFocusedElement); } 
      91             : 
      92             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      93             : #define NS_FORWARD_SAFE_NSIWEBBROWSERFOCUS(_to) \
      94             :   NS_IMETHOD Activate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Activate(); } \
      95             :   NS_IMETHOD Deactivate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Deactivate(); } \
      96             :   NS_IMETHOD SetFocusAtFirstElement(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusAtFirstElement(); } \
      97             :   NS_IMETHOD SetFocusAtLastElement(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusAtLastElement(); } \
      98             :   NS_IMETHOD GetFocusedWindow(mozIDOMWindowProxy * *aFocusedWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedWindow(aFocusedWindow); } \
      99             :   NS_IMETHOD SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusedWindow(aFocusedWindow); } \
     100             :   NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedElement(aFocusedElement); } \
     101             :   NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusedElement(aFocusedElement); } 
     102             : 
     103             : #if 0
     104             : /* Use the code below as a template for the implementation class for this interface. */
     105             : 
     106             : /* Header file */
     107             : class nsWebBrowserFocus : public nsIWebBrowserFocus
     108             : {
     109             : public:
     110             :   NS_DECL_ISUPPORTS
     111             :   NS_DECL_NSIWEBBROWSERFOCUS
     112             : 
     113             :   nsWebBrowserFocus();
     114             : 
     115             : private:
     116             :   ~nsWebBrowserFocus();
     117             : 
     118             : protected:
     119             :   /* additional members */
     120             : };
     121             : 
     122             : /* Implementation file */
     123             : NS_IMPL_ISUPPORTS(nsWebBrowserFocus, nsIWebBrowserFocus)
     124             : 
     125             : nsWebBrowserFocus::nsWebBrowserFocus()
     126             : {
     127             :   /* member initializers and constructor code */
     128             : }
     129             : 
     130             : nsWebBrowserFocus::~nsWebBrowserFocus()
     131             : {
     132             :   /* destructor code */
     133             : }
     134             : 
     135             : /* void activate (); */
     136             : NS_IMETHODIMP nsWebBrowserFocus::Activate()
     137             : {
     138             :     return NS_ERROR_NOT_IMPLEMENTED;
     139             : }
     140             : 
     141             : /* void deactivate (); */
     142             : NS_IMETHODIMP nsWebBrowserFocus::Deactivate()
     143             : {
     144             :     return NS_ERROR_NOT_IMPLEMENTED;
     145             : }
     146             : 
     147             : /* void setFocusAtFirstElement (); */
     148             : NS_IMETHODIMP nsWebBrowserFocus::SetFocusAtFirstElement()
     149             : {
     150             :     return NS_ERROR_NOT_IMPLEMENTED;
     151             : }
     152             : 
     153             : /* void setFocusAtLastElement (); */
     154             : NS_IMETHODIMP nsWebBrowserFocus::SetFocusAtLastElement()
     155             : {
     156             :     return NS_ERROR_NOT_IMPLEMENTED;
     157             : }
     158             : 
     159             : /* attribute mozIDOMWindowProxy focusedWindow; */
     160             : NS_IMETHODIMP nsWebBrowserFocus::GetFocusedWindow(mozIDOMWindowProxy * *aFocusedWindow)
     161             : {
     162             :     return NS_ERROR_NOT_IMPLEMENTED;
     163             : }
     164             : NS_IMETHODIMP nsWebBrowserFocus::SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow)
     165             : {
     166             :     return NS_ERROR_NOT_IMPLEMENTED;
     167             : }
     168             : 
     169             : /* attribute nsIDOMElement focusedElement; */
     170             : NS_IMETHODIMP nsWebBrowserFocus::GetFocusedElement(nsIDOMElement * *aFocusedElement)
     171             : {
     172             :     return NS_ERROR_NOT_IMPLEMENTED;
     173             : }
     174             : NS_IMETHODIMP nsWebBrowserFocus::SetFocusedElement(nsIDOMElement *aFocusedElement)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : 
     179             : /* End of implementation class template. */
     180             : #endif
     181             : 
     182             : 
     183             : #endif /* __gen_nsIWebBrowserFocus_h__ */

Generated by: LCOV version 1.13