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.

     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/. */
     7 #ifndef nsMozIconURI_h__
     8 #define nsMozIconURI_h__
    10 #include "nsIIconURI.h"
    11 #include "nsCOMPtr.h"
    12 #include "nsString.h"
    14 #define NS_MOZICONURI_CID                            \
    15 {                                                    \
    16     0x43a88e0e,                                      \
    17     0x2d37,                                          \
    18     0x11d5,                                          \
    19     { 0x99, 0x7, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b }   \
    20 }
    22 class nsMozIconURI : public nsIMozIconURI
    23 {
    24 public:    
    25   NS_DECL_THREADSAFE_ISUPPORTS
    26   NS_DECL_NSIURI
    27   NS_DECL_NSIMOZICONURI
    29   // nsMozIconURI
    30   nsMozIconURI();
    31   virtual ~nsMozIconURI();
    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 };
    43 #endif // nsMozIconURI_h__

mercurial