1999-06-24 04:07:34 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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/. */
|
1999-06-24 04:07:34 +04:00
|
|
|
|
|
|
|
|
2007-04-17 08:06:12 +04:00
|
|
|
#include "nsISupports.idl"
|
1999-06-24 04:07:34 +04:00
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
interface mozIDOMWindow;
|
2007-04-17 08:06:12 +04:00
|
|
|
interface nsIURI;
|
2010-09-11 08:07:41 +04:00
|
|
|
interface nsIArray;
|
1999-06-24 04:07:34 +04:00
|
|
|
|
2018-04-07 01:32:25 +03:00
|
|
|
webidl HTMLFormElement;
|
2018-08-16 22:20:54 +03:00
|
|
|
webidl Element;
|
2018-04-07 01:32:25 +03:00
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
[scriptable, uuid(867cb7e7-835d-408b-9788-d2834d284e03)]
|
2007-04-17 08:06:12 +04:00
|
|
|
interface nsIFormSubmitObserver: nsISupports
|
|
|
|
{
|
2018-04-07 01:32:25 +03:00
|
|
|
void notify(in HTMLFormElement formNode, in mozIDOMWindow window, in nsIURI actionURL, out boolean cancelSubmit);
|
2010-09-11 08:07:41 +04:00
|
|
|
|
2018-04-07 01:32:25 +03:00
|
|
|
void notifyInvalidSubmit(in HTMLFormElement formNode,
|
2018-08-16 22:20:54 +03:00
|
|
|
in Array<Element> invalidElements);
|
2007-04-17 08:06:12 +04:00
|
|
|
};
|
1999-06-24 04:07:34 +04:00
|
|
|
|
2007-04-17 08:06:12 +04:00
|
|
|
%{C++
|
1999-06-24 04:07:34 +04:00
|
|
|
#define NS_FORMSUBMIT_SUBJECT "formsubmit"
|
2006-07-18 04:18:32 +04:00
|
|
|
#define NS_EARLYFORMSUBMIT_SUBJECT "earlyformsubmit"
|
2001-08-29 02:32:03 +04:00
|
|
|
#define NS_FIRST_FORMSUBMIT_CATEGORY "firstformsubmit"
|
|
|
|
#define NS_PASSWORDMANAGER_CATEGORY "passwordmanager"
|
2010-09-11 08:07:41 +04:00
|
|
|
#define NS_INVALIDFORMSUBMIT_SUBJECT "invalidformsubmit"
|
2007-04-17 08:06:12 +04:00
|
|
|
%}
|