LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIFormSubmitObserver.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/content/html/content/public/nsIFormSubmitObserver.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIFormSubmitObserver_h__
       6                 : #define __gen_nsIFormSubmitObserver_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 nsIDOMHTMLFormElement; /* forward declaration */
      18                 : 
      19                 : class nsIDOMWindow; /* forward declaration */
      20                 : 
      21                 : class nsIURI; /* forward declaration */
      22                 : 
      23                 : class nsIArray; /* forward declaration */
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsIFormSubmitObserver */
      27                 : #define NS_IFORMSUBMITOBSERVER_IID_STR "534ab795-6a99-4195-bfab-cfdd7836657d"
      28                 : 
      29                 : #define NS_IFORMSUBMITOBSERVER_IID \
      30                 :   {0x534ab795, 0x6a99, 0x4195, \
      31                 :     { 0xbf, 0xab, 0xcf, 0xdd, 0x78, 0x36, 0x65, 0x7d }}
      32                 : 
      33               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFormSubmitObserver : public nsISupports {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFORMSUBMITOBSERVER_IID)
      37                 : 
      38                 :   /* void notify (in nsIDOMHTMLFormElement formNode, in nsIDOMWindow window, in nsIURI actionURL, out boolean cancelSubmit); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIDOMHTMLFormElement *formNode, nsIDOMWindow *window, nsIURI *actionURL, bool *cancelSubmit NS_OUTPARAM) = 0;
      40                 : 
      41                 :   /* void notifyInvalidSubmit (in nsIDOMHTMLFormElement formNode, in nsIArray invalidElements); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD NotifyInvalidSubmit(nsIDOMHTMLFormElement *formNode, nsIArray *invalidElements) = 0;
      43                 : 
      44                 : };
      45                 : 
      46                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIFormSubmitObserver, NS_IFORMSUBMITOBSERVER_IID)
      47                 : 
      48                 : /* Use this macro when declaring classes that implement this interface. */
      49                 : #define NS_DECL_NSIFORMSUBMITOBSERVER \
      50                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIDOMHTMLFormElement *formNode, nsIDOMWindow *window, nsIURI *actionURL, bool *cancelSubmit NS_OUTPARAM); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD NotifyInvalidSubmit(nsIDOMHTMLFormElement *formNode, nsIArray *invalidElements); 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_NSIFORMSUBMITOBSERVER(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIDOMHTMLFormElement *formNode, nsIDOMWindow *window, nsIURI *actionURL, bool *cancelSubmit NS_OUTPARAM) { return _to Notify(formNode, window, actionURL, cancelSubmit); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD NotifyInvalidSubmit(nsIDOMHTMLFormElement *formNode, nsIArray *invalidElements) { return _to NotifyInvalidSubmit(formNode, invalidElements); } 
      57                 : 
      58                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      59                 : #define NS_FORWARD_SAFE_NSIFORMSUBMITOBSERVER(_to) \
      60                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIDOMHTMLFormElement *formNode, nsIDOMWindow *window, nsIURI *actionURL, bool *cancelSubmit NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Notify(formNode, window, actionURL, cancelSubmit); } \
      61                 :   NS_SCRIPTABLE NS_IMETHOD NotifyInvalidSubmit(nsIDOMHTMLFormElement *formNode, nsIArray *invalidElements) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyInvalidSubmit(formNode, invalidElements); } 
      62                 : 
      63                 : #if 0
      64                 : /* Use the code below as a template for the implementation class for this interface. */
      65                 : 
      66                 : /* Header file */
      67                 : class nsFormSubmitObserver : public nsIFormSubmitObserver
      68                 : {
      69                 : public:
      70                 :   NS_DECL_ISUPPORTS
      71                 :   NS_DECL_NSIFORMSUBMITOBSERVER
      72                 : 
      73                 :   nsFormSubmitObserver();
      74                 : 
      75                 : private:
      76                 :   ~nsFormSubmitObserver();
      77                 : 
      78                 : protected:
      79                 :   /* additional members */
      80                 : };
      81                 : 
      82                 : /* Implementation file */
      83                 : NS_IMPL_ISUPPORTS1(nsFormSubmitObserver, nsIFormSubmitObserver)
      84                 : 
      85                 : nsFormSubmitObserver::nsFormSubmitObserver()
      86                 : {
      87                 :   /* member initializers and constructor code */
      88                 : }
      89                 : 
      90                 : nsFormSubmitObserver::~nsFormSubmitObserver()
      91                 : {
      92                 :   /* destructor code */
      93                 : }
      94                 : 
      95                 : /* void notify (in nsIDOMHTMLFormElement formNode, in nsIDOMWindow window, in nsIURI actionURL, out boolean cancelSubmit); */
      96                 : NS_IMETHODIMP nsFormSubmitObserver::Notify(nsIDOMHTMLFormElement *formNode, nsIDOMWindow *window, nsIURI *actionURL, bool *cancelSubmit NS_OUTPARAM)
      97                 : {
      98                 :     return NS_ERROR_NOT_IMPLEMENTED;
      99                 : }
     100                 : 
     101                 : /* void notifyInvalidSubmit (in nsIDOMHTMLFormElement formNode, in nsIArray invalidElements); */
     102                 : NS_IMETHODIMP nsFormSubmitObserver::NotifyInvalidSubmit(nsIDOMHTMLFormElement *formNode, nsIArray *invalidElements)
     103                 : {
     104                 :     return NS_ERROR_NOT_IMPLEMENTED;
     105                 : }
     106                 : 
     107                 : /* End of implementation class template. */
     108                 : #endif
     109                 : 
     110                 : #define NS_FORMSUBMIT_SUBJECT "formsubmit"
     111                 : #define NS_EARLYFORMSUBMIT_SUBJECT "earlyformsubmit"
     112                 : #define NS_FIRST_FORMSUBMIT_CATEGORY "firstformsubmit"
     113                 : #define NS_PASSWORDMANAGER_CATEGORY "passwordmanager"
     114                 : #define NS_INVALIDFORMSUBMIT_SUBJECT "invalidformsubmit"
     115                 : 
     116                 : #endif /* __gen_nsIFormSubmitObserver_h__ */

Generated by: LCOV version 1.7