|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
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 "nsISupports.idl" |
|
8 |
|
9 interface imgIRequest; |
|
10 |
|
11 %{C++ |
|
12 #include "nsRect.h" |
|
13 %} |
|
14 |
|
15 [ptr] native nsIntRect(nsIntRect); |
|
16 |
|
17 [scriptable, builtinclass, uuid(ac65c702-7771-4f6d-b18b-1c7d806ce3c1)] |
|
18 interface imgINotificationObserver : nsISupports |
|
19 { |
|
20 const long SIZE_AVAILABLE = 1; |
|
21 const long FRAME_UPDATE = 2; |
|
22 const long FRAME_COMPLETE = 3; |
|
23 const long LOAD_COMPLETE = 4; |
|
24 const long DECODE_COMPLETE = 5; |
|
25 const long DISCARD = 6; |
|
26 const long UNLOCKED_DRAW = 7; |
|
27 const long IS_ANIMATED = 8; |
|
28 |
|
29 [noscript] void notify(in imgIRequest aProxy, in long aType, [const] in nsIntRect aRect); |
|
30 }; |