|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
|
3 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #include "nsIDOMEvent.idl" |
|
8 |
|
9 /** |
|
10 * ProgressEvent can be used for measuring progress. |
|
11 */ |
|
12 |
|
13 [scriptable, builtinclass, uuid(e0682338-4c3f-4d3a-9487-d7492ea76335)] |
|
14 interface nsIDOMProgressEvent : nsIDOMEvent |
|
15 { |
|
16 readonly attribute boolean lengthComputable; |
|
17 readonly attribute unsigned long long loaded; |
|
18 readonly attribute unsigned long long total; |
|
19 [noscript] |
|
20 void initProgressEvent(in DOMString typeArg, |
|
21 in boolean canBubbleArg, |
|
22 in boolean cancelableArg, |
|
23 in boolean lengthComputableArg, |
|
24 in unsigned long long loadedArg, |
|
25 in unsigned long long totalArg); |
|
26 }; |