1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3
* The contents of this file are subject to the Mozilla Public
4
* License Version 1.1 (the "License"); you may not use this file
5
* except in compliance with the License. You may obtain a copy of
6
* the License at http://www.mozilla.org/MPL/
8
* Software distributed under the License is distributed on an "AS
9
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
* implied. See the License for the specific language governing
11
* rights and limitations under the License.
13
* The Original Code is mozilla.org code.
15
* The Initial Developer of the Original Code is Netscape
16
* Communications Corporation. Portions created by Netscape are
17
* Copyright (C) 2001 Netscape Communications Corporation.
18
* All Rights Reserved.
21
* Stuart Parmenter <pavlov@netscape.com>
24
#include "nsISupports.idl"
25
#include "nsIRequest.idl"
27
interface imgIContainer;
28
interface imgIDecoderObserver;
32
* imgIRequest interface
34
* @author Stuart Parmenter <pavlov@netscape.com>
38
[scriptable, uuid(ccf705f6-1dd1-11b2-82ef-e18eccf7f7ec)]
39
interface imgIRequest : nsIRequest
42
* the image container...
43
* @return the image object associated with the request.
44
* @attention NEED DOCS
46
readonly attribute imgIContainer image;
49
* Bits set in the return value from imageStatus
53
const long STATUS_NONE = 0x0;
54
const long STATUS_SIZE_AVAILABLE = 0x1;
55
const long STATUS_LOAD_PARTIAL = 0x2;
56
const long STATUS_LOAD_COMPLETE = 0x4;
57
const long STATUS_ERROR = 0x8;
58
const long STATUS_FRAME_COMPLETE = 0x10;
63
* @attention NEED DOCS
65
readonly attribute unsigned long imageStatus;
67
readonly attribute nsIURI URI;
69
readonly attribute imgIDecoderObserver decoderObserver;
71
readonly attribute string mimeType;
74
* Clone this request; the returned request will have aObserver as the
75
* observer. aObserver will be notified synchronously (before the clone()
76
* call returns) with all the notifications that have already been dispatched
77
* for this image load.
79
imgIRequest clone(in imgIDecoderObserver aObserver);