2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
2007-04-16 21:06:12 -07:00
|
|
|
#include "nsISupports.idl"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-04-16 21:06:12 -07:00
|
|
|
interface nsIDOMHTMLFormElement;
|
2011-07-15 03:31:34 -07:00
|
|
|
interface nsIDOMWindow;
|
2007-04-16 21:06:12 -07:00
|
|
|
interface nsIURI;
|
2010-09-10 21:07:41 -07:00
|
|
|
interface nsIArray;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-07-15 03:31:34 -07:00
|
|
|
[scriptable, uuid(534ab795-6a99-4195-bfab-cfdd7836657d)]
|
2007-04-16 21:06:12 -07:00
|
|
|
interface nsIFormSubmitObserver: nsISupports
|
|
|
|
{
|
2011-07-15 03:31:34 -07:00
|
|
|
void notify(in nsIDOMHTMLFormElement formNode, in nsIDOMWindow window, in nsIURI actionURL, out boolean cancelSubmit);
|
2010-09-10 21:07:41 -07:00
|
|
|
|
|
|
|
void notifyInvalidSubmit(in nsIDOMHTMLFormElement formNode,
|
|
|
|
in nsIArray invalidElements);
|
2007-04-16 21:06:12 -07:00
|
|
|
};
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-04-16 21:06:12 -07:00
|
|
|
%{C++
|
2007-03-22 10:30:00 -07:00
|
|
|
#define NS_FORMSUBMIT_SUBJECT "formsubmit"
|
|
|
|
#define NS_EARLYFORMSUBMIT_SUBJECT "earlyformsubmit"
|
|
|
|
#define NS_FIRST_FORMSUBMIT_CATEGORY "firstformsubmit"
|
|
|
|
#define NS_PASSWORDMANAGER_CATEGORY "passwordmanager"
|
2010-09-10 21:07:41 -07:00
|
|
|
#define NS_INVALIDFORMSUBMIT_SUBJECT "invalidformsubmit"
|
2007-04-16 21:06:12 -07:00
|
|
|
%}
|