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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/editor/nsIEditorUtils.idl
 */

#ifndef __gen_nsIEditorUtils_h__
#define __gen_nsIEditorUtils_h__


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

#ifndef __gen_domstubs_h__
#include "domstubs.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 mozIDOMWindowProxy; /* forward declaration */

namespace mozilla {
namespace dom {
class Blob; /* webidl Blob */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsIEditorBlobListener */
#define NS_IEDITORBLOBLISTENER_IID_STR "eb8b8ad9-5d8f-43bd-8ce5-5b943c180d56"

#define NS_IEDITORBLOBLISTENER_IID \
  {0xeb8b8ad9, 0x5d8f, 0x43bd, \
    { 0x8c, 0xe5, 0x5b, 0x94, 0x3c, 0x18, 0x0d, 0x56 }}

class NS_NO_VTABLE nsIEditorBlobListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORBLOBLISTENER_IID)

  /* void onResult (in ACString aResult); */
  NS_IMETHOD OnResult(const nsACString& aResult) = 0;

  /* void onError (in AString aErrorName); */
  NS_IMETHOD OnError(const nsAString& aErrorName) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorBlobListener, NS_IEDITORBLOBLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEDITORBLOBLISTENER \
  NS_IMETHOD OnResult(const nsACString& aResult) override; \
  NS_IMETHOD OnError(const nsAString& aErrorName) 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_NSIEDITORBLOBLISTENER \
  nsresult OnResult(const nsACString& aResult); \
  nsresult OnError(const nsAString& aErrorName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEDITORBLOBLISTENER(_to) \
  NS_IMETHOD OnResult(const nsACString& aResult) override { return _to OnResult(aResult); } \
  NS_IMETHOD OnError(const nsAString& aErrorName) override { return _to OnError(aErrorName); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEDITORBLOBLISTENER(_to) \
  NS_IMETHOD OnResult(const nsACString& aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResult(aResult); } \
  NS_IMETHOD OnError(const nsAString& aErrorName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aErrorName); } 


/* starting interface:    nsIEditorUtils */
#define NS_IEDITORUTILS_IID_STR "4bf94928-575e-4bd1-8321-a2c4b3d0119e"

#define NS_IEDITORUTILS_IID \
  {0x4bf94928, 0x575e, 0x4bd1, \
    { 0x83, 0x21, 0xa2, 0xc4, 0xb3, 0xd0, 0x11, 0x9e }}

class NS_NO_VTABLE nsIEditorUtils : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORUTILS_IID)

  /* void slurpBlob (in Blob aBlob, in mozIDOMWindowProxy aScope, in nsIEditorBlobListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SlurpBlob(mozilla::dom::Blob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorUtils, NS_IEDITORUTILS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEDITORUTILS \
  NS_IMETHOD SlurpBlob(mozilla::dom::Blob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) 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_NSIEDITORUTILS \
  nsresult SlurpBlob(mozilla::dom::Blob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEDITORUTILS(_to) \
  NS_IMETHOD SlurpBlob(mozilla::dom::Blob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) override { return _to SlurpBlob(aBlob, aScope, aListener); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEDITORUTILS(_to) \
  NS_IMETHOD SlurpBlob(mozilla::dom::Blob *aBlob, mozIDOMWindowProxy *aScope, nsIEditorBlobListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SlurpBlob(aBlob, aScope, aListener); } 


#endif /* __gen_nsIEditorUtils_h__ */