Bug 1494333 - index crons just like artifacts r=Callek
[gecko.git] / dom / html / nsIFormSubmitObserver.idl
blob8a69f952c2d7f8cc84bf17acbc85513e75079983
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
9 interface mozIDOMWindow;
10 interface nsIURI;
11 interface nsIArray;
13 webidl HTMLFormElement;
14 webidl Element;
16 [scriptable, uuid(867cb7e7-835d-408b-9788-d2834d284e03)]
17 interface nsIFormSubmitObserver: nsISupports
19 void notify(in HTMLFormElement formNode, in mozIDOMWindow window, in nsIURI actionURL, out boolean cancelSubmit);
21 void notifyInvalidSubmit(in HTMLFormElement formNode,
22 in Array<Element> invalidElements);
25 %{C++
26 #define NS_FORMSUBMIT_SUBJECT "formsubmit"
27 #define NS_EARLYFORMSUBMIT_SUBJECT "earlyformsubmit"
28 #define NS_FIRST_FORMSUBMIT_CATEGORY "firstformsubmit"
29 #define NS_PASSWORDMANAGER_CATEGORY "passwordmanager"
30 #define NS_INVALIDFORMSUBMIT_SUBJECT "invalidformsubmit"