~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/modules/libpr0n/public/imgIRequest.idl

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
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/
 
7
 * 
 
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.
 
12
 * 
 
13
 * The Original Code is mozilla.org code.
 
14
 * 
 
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.
 
19
 * 
 
20
 * Contributor(s):
 
21
 *   Stuart Parmenter <pavlov@netscape.com>
 
22
 */
 
23
 
 
24
#include "nsISupports.idl"
 
25
#include "nsIRequest.idl"
 
26
 
 
27
interface imgIContainer;
 
28
interface imgIDecoderObserver;
 
29
interface nsIURI;
 
30
 
 
31
/**
 
32
 * imgIRequest interface
 
33
 *
 
34
 * @author Stuart Parmenter <pavlov@netscape.com>
 
35
 * @version 0.1
 
36
 * @see imagelib2
 
37
 */
 
38
[scriptable, uuid(ccf705f6-1dd1-11b2-82ef-e18eccf7f7ec)]
 
39
interface imgIRequest : nsIRequest
 
40
{
 
41
  /**
 
42
   * the image container...
 
43
   * @return the image object associated with the request.
 
44
   * @attention NEED DOCS
 
45
   */
 
46
  readonly attribute imgIContainer image;
 
47
 
 
48
  /**
 
49
   * Bits set in the return value from imageStatus
 
50
   * @name statusflags
 
51
   */
 
52
  //@{
 
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;
 
59
  //@}
 
60
 
 
61
  /**
 
62
   * something
 
63
   * @attention NEED DOCS
 
64
   */
 
65
  readonly attribute unsigned long imageStatus;
 
66
 
 
67
  readonly attribute nsIURI URI;
 
68
 
 
69
  readonly attribute imgIDecoderObserver decoderObserver;
 
70
 
 
71
  readonly attribute string mimeType;
 
72
 
 
73
  /**
 
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.
 
78
   */
 
79
  imgIRequest clone(in imgIDecoderObserver aObserver);
 
80
};
 
81