image/decoders/icon/nsIconURI.h

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:a4a2389df120
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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 #ifndef nsMozIconURI_h__
8 #define nsMozIconURI_h__
9
10 #include "nsIIconURI.h"
11 #include "nsCOMPtr.h"
12 #include "nsString.h"
13
14 #define NS_MOZICONURI_CID \
15 { \
16 0x43a88e0e, \
17 0x2d37, \
18 0x11d5, \
19 { 0x99, 0x7, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } \
20 }
21
22 class nsMozIconURI : public nsIMozIconURI
23 {
24 public:
25 NS_DECL_THREADSAFE_ISUPPORTS
26 NS_DECL_NSIURI
27 NS_DECL_NSIMOZICONURI
28
29 // nsMozIconURI
30 nsMozIconURI();
31 virtual ~nsMozIconURI();
32
33 protected:
34 nsCOMPtr<nsIURL> mIconURL; // a URL that we want the icon for
35 uint32_t mSize; // the # of pixels in a row that we want for this image. Typically 16, 32, 128, etc.
36 nsCString mContentType; // optional field explicitly specifying the content type
37 nsCString mFileName; // for if we don't have an actual file path, we're just given a filename with an extension
38 nsCString mStockIcon;
39 int32_t mIconSize; // -1 if not specified, otherwise index into kSizeStrings
40 int32_t mIconState; // -1 if not specified, otherwise index into kStateStrings
41 };
42
43 #endif // nsMozIconURI_h__

mercurial