image/decoders/icon/nsIconURI.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef nsMozIconURI_h__
michael@0 8 #define nsMozIconURI_h__
michael@0 9
michael@0 10 #include "nsIIconURI.h"
michael@0 11 #include "nsCOMPtr.h"
michael@0 12 #include "nsString.h"
michael@0 13
michael@0 14 #define NS_MOZICONURI_CID \
michael@0 15 { \
michael@0 16 0x43a88e0e, \
michael@0 17 0x2d37, \
michael@0 18 0x11d5, \
michael@0 19 { 0x99, 0x7, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } \
michael@0 20 }
michael@0 21
michael@0 22 class nsMozIconURI : public nsIMozIconURI
michael@0 23 {
michael@0 24 public:
michael@0 25 NS_DECL_THREADSAFE_ISUPPORTS
michael@0 26 NS_DECL_NSIURI
michael@0 27 NS_DECL_NSIMOZICONURI
michael@0 28
michael@0 29 // nsMozIconURI
michael@0 30 nsMozIconURI();
michael@0 31 virtual ~nsMozIconURI();
michael@0 32
michael@0 33 protected:
michael@0 34 nsCOMPtr<nsIURL> mIconURL; // a URL that we want the icon for
michael@0 35 uint32_t mSize; // the # of pixels in a row that we want for this image. Typically 16, 32, 128, etc.
michael@0 36 nsCString mContentType; // optional field explicitly specifying the content type
michael@0 37 nsCString mFileName; // for if we don't have an actual file path, we're just given a filename with an extension
michael@0 38 nsCString mStockIcon;
michael@0 39 int32_t mIconSize; // -1 if not specified, otherwise index into kSizeStrings
michael@0 40 int32_t mIconState; // -1 if not specified, otherwise index into kStateStrings
michael@0 41 };
michael@0 42
michael@0 43 #endif // nsMozIconURI_h__

mercurial