image/decoders/icon/nsIconURI.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/decoders/icon/nsIconURI.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsMozIconURI_h__
    1.11 +#define nsMozIconURI_h__
    1.12 +
    1.13 +#include "nsIIconURI.h"
    1.14 +#include "nsCOMPtr.h"
    1.15 +#include "nsString.h"
    1.16 +
    1.17 +#define NS_MOZICONURI_CID                            \
    1.18 +{                                                    \
    1.19 +    0x43a88e0e,                                      \
    1.20 +    0x2d37,                                          \
    1.21 +    0x11d5,                                          \
    1.22 +    { 0x99, 0x7, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b }   \
    1.23 +}
    1.24 +
    1.25 +class nsMozIconURI : public nsIMozIconURI
    1.26 +{
    1.27 +public:    
    1.28 +  NS_DECL_THREADSAFE_ISUPPORTS
    1.29 +  NS_DECL_NSIURI
    1.30 +  NS_DECL_NSIMOZICONURI
    1.31 +
    1.32 +  // nsMozIconURI
    1.33 +  nsMozIconURI();
    1.34 +  virtual ~nsMozIconURI();
    1.35 +
    1.36 +protected:
    1.37 +  nsCOMPtr<nsIURL> mIconURL; // a URL that we want the icon for
    1.38 +  uint32_t mSize; // the # of pixels in a row that we want for this image. Typically 16, 32, 128, etc.
    1.39 +  nsCString mContentType; // optional field explicitly specifying the content type
    1.40 +  nsCString mFileName; // for if we don't have an actual file path, we're just given a filename with an extension
    1.41 +  nsCString mStockIcon;
    1.42 +  int32_t mIconSize;     // -1 if not specified, otherwise index into kSizeStrings
    1.43 +  int32_t mIconState;    // -1 if not specified, otherwise index into kStateStrings
    1.44 +};
    1.45 +
    1.46 +#endif // nsMozIconURI_h__

mercurial