DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/places/mozIColorAnalyzer.idl
 */

#ifndef __gen_mozIColorAnalyzer_h__
#define __gen_mozIColorAnalyzer_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */


/* starting interface:    mozIRepresentativeColorCallback */
#define MOZIREPRESENTATIVECOLORCALLBACK_IID_STR "e4089e21-71b6-40af-b546-33c21b90e874"

#define MOZIREPRESENTATIVECOLORCALLBACK_IID \
  {0xe4089e21, 0x71b6, 0x40af, \
    { 0xb5, 0x46, 0x33, 0xc2, 0x1b, 0x90, 0xe8, 0x74 }}

class NS_NO_VTABLE mozIRepresentativeColorCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZIREPRESENTATIVECOLORCALLBACK_IID)

  /* void onComplete (in boolean success, [optional] in unsigned long color); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnComplete(bool success, uint32_t color) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozIRepresentativeColorCallback, MOZIREPRESENTATIVECOLORCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZIREPRESENTATIVECOLORCALLBACK \
  NS_IMETHOD OnComplete(bool success, uint32_t color) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_MOZIREPRESENTATIVECOLORCALLBACK \
  nsresult OnComplete(bool success, uint32_t color); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZIREPRESENTATIVECOLORCALLBACK(_to) \
  NS_IMETHOD OnComplete(bool success, uint32_t color) override { return _to OnComplete(success, color); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZIREPRESENTATIVECOLORCALLBACK(_to) \
  NS_IMETHOD OnComplete(bool success, uint32_t color) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnComplete(success, color); } 


/* starting interface:    mozIColorAnalyzer */
#define MOZICOLORANALYZER_IID_STR "d056186c-28a0-494e-aacc-9e433772b143"

#define MOZICOLORANALYZER_IID \
  {0xd056186c, 0x28a0, 0x494e, \
    { 0xaa, 0xcc, 0x9e, 0x43, 0x37, 0x72, 0xb1, 0x43 }}

class NS_NO_VTABLE mozIColorAnalyzer : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZICOLORANALYZER_IID)

  /* void findRepresentativeColor (in nsIURI imageURI, in mozIRepresentativeColorCallback callback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindRepresentativeColor(nsIURI *imageURI, mozIRepresentativeColorCallback *callback) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozIColorAnalyzer, MOZICOLORANALYZER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZICOLORANALYZER \
  NS_IMETHOD FindRepresentativeColor(nsIURI *imageURI, mozIRepresentativeColorCallback *callback) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_MOZICOLORANALYZER \
  nsresult FindRepresentativeColor(nsIURI *imageURI, mozIRepresentativeColorCallback *callback); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZICOLORANALYZER(_to) \
  NS_IMETHOD FindRepresentativeColor(nsIURI *imageURI, mozIRepresentativeColorCallback *callback) override { return _to FindRepresentativeColor(imageURI, callback); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZICOLORANALYZER(_to) \
  NS_IMETHOD FindRepresentativeColor(nsIURI *imageURI, mozIRepresentativeColorCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindRepresentativeColor(imageURI, callback); } 


#endif /* __gen_mozIColorAnalyzer_h__ */