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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/editor/nsIEditActionListener.idl
 */

#ifndef __gen_nsIEditActionListener_h__
#define __gen_nsIEditActionListener_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
namespace mozilla {
namespace dom {
class CharacterData; /* webidl CharacterData */
} // namespace dom
} // namespace mozilla

class nsINode; /* webidl Node */

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


/* starting interface:    nsIEditActionListener */
#define NS_IEDITACTIONLISTENER_IID_STR "b22907b1-ee93-11d2-8d50-000064657374"

#define NS_IEDITACTIONLISTENER_IID \
  {0xb22907b1, 0xee93, 0x11d2, \
    { 0x8d, 0x50, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}

class NS_NO_VTABLE nsIEditActionListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITACTIONLISTENER_IID)

  /* void DidCreateNode (in DOMString aTag, in Node aNewNode, in nsresult aResult); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidCreateNode(const nsAString& aTag, nsINode *aNewNode, nsresult aResult) = 0;

  /* void DidInsertNode (in Node aNode, in nsresult aResult); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidInsertNode(nsINode *aNode, nsresult aResult) = 0;

  /* void DidDeleteNode (in Node aChild, in nsresult aResult); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidDeleteNode(nsINode *aChild, nsresult aResult) = 0;

  /* void DidSplitNode (in Node aExistingRightNode, in Node aNewLeftNode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidSplitNode(nsINode *aExistingRightNode, nsINode *aNewLeftNode) = 0;

  /* void DidJoinNodes (in Node aLeftNode, in Node aRightNode, in Node aParent, in nsresult aResult); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidJoinNodes(nsINode *aLeftNode, nsINode *aRightNode, nsINode *aParent, nsresult aResult) = 0;

  /* void DidInsertText (in CharacterData aTextNode, in long aOffset, in DOMString aString, in nsresult aResult); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidInsertText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, const nsAString& aString, nsresult aResult) = 0;

  /* void WillDeleteText (in CharacterData aTextNode, in long aOffset, in long aLength); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WillDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength) = 0;

  /* void DidDeleteText (in CharacterData aTextNode, in long aOffset, in long aLength, in nsresult aResult); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength, nsresult aResult) = 0;

  /* void WillDeleteSelection (in Selection aSelection); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WillDeleteSelection(mozilla::dom::Selection *aSelection) = 0;

  /* void DidDeleteSelection (in Selection aSelection); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DidDeleteSelection(mozilla::dom::Selection *aSelection) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditActionListener, NS_IEDITACTIONLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEDITACTIONLISTENER \
  NS_IMETHOD DidCreateNode(const nsAString& aTag, nsINode *aNewNode, nsresult aResult) override; \
  NS_IMETHOD DidInsertNode(nsINode *aNode, nsresult aResult) override; \
  NS_IMETHOD DidDeleteNode(nsINode *aChild, nsresult aResult) override; \
  NS_IMETHOD DidSplitNode(nsINode *aExistingRightNode, nsINode *aNewLeftNode) override; \
  NS_IMETHOD DidJoinNodes(nsINode *aLeftNode, nsINode *aRightNode, nsINode *aParent, nsresult aResult) override; \
  NS_IMETHOD DidInsertText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, const nsAString& aString, nsresult aResult) override; \
  NS_IMETHOD WillDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength) override; \
  NS_IMETHOD DidDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength, nsresult aResult) override; \
  NS_IMETHOD WillDeleteSelection(mozilla::dom::Selection *aSelection) override; \
  NS_IMETHOD DidDeleteSelection(mozilla::dom::Selection *aSelection) 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_NSIEDITACTIONLISTENER \
  nsresult DidCreateNode(const nsAString& aTag, nsINode *aNewNode, nsresult aResult); \
  nsresult DidInsertNode(nsINode *aNode, nsresult aResult); \
  nsresult DidDeleteNode(nsINode *aChild, nsresult aResult); \
  nsresult DidSplitNode(nsINode *aExistingRightNode, nsINode *aNewLeftNode); \
  nsresult DidJoinNodes(nsINode *aLeftNode, nsINode *aRightNode, nsINode *aParent, nsresult aResult); \
  nsresult DidInsertText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, const nsAString& aString, nsresult aResult); \
  nsresult WillDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength); \
  nsresult DidDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength, nsresult aResult); \
  nsresult WillDeleteSelection(mozilla::dom::Selection *aSelection); \
  nsresult DidDeleteSelection(mozilla::dom::Selection *aSelection); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEDITACTIONLISTENER(_to) \
  NS_IMETHOD DidCreateNode(const nsAString& aTag, nsINode *aNewNode, nsresult aResult) override { return _to DidCreateNode(aTag, aNewNode, aResult); } \
  NS_IMETHOD DidInsertNode(nsINode *aNode, nsresult aResult) override { return _to DidInsertNode(aNode, aResult); } \
  NS_IMETHOD DidDeleteNode(nsINode *aChild, nsresult aResult) override { return _to DidDeleteNode(aChild, aResult); } \
  NS_IMETHOD DidSplitNode(nsINode *aExistingRightNode, nsINode *aNewLeftNode) override { return _to DidSplitNode(aExistingRightNode, aNewLeftNode); } \
  NS_IMETHOD DidJoinNodes(nsINode *aLeftNode, nsINode *aRightNode, nsINode *aParent, nsresult aResult) override { return _to DidJoinNodes(aLeftNode, aRightNode, aParent, aResult); } \
  NS_IMETHOD DidInsertText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, const nsAString& aString, nsresult aResult) override { return _to DidInsertText(aTextNode, aOffset, aString, aResult); } \
  NS_IMETHOD WillDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength) override { return _to WillDeleteText(aTextNode, aOffset, aLength); } \
  NS_IMETHOD DidDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength, nsresult aResult) override { return _to DidDeleteText(aTextNode, aOffset, aLength, aResult); } \
  NS_IMETHOD WillDeleteSelection(mozilla::dom::Selection *aSelection) override { return _to WillDeleteSelection(aSelection); } \
  NS_IMETHOD DidDeleteSelection(mozilla::dom::Selection *aSelection) override { return _to DidDeleteSelection(aSelection); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEDITACTIONLISTENER(_to) \
  NS_IMETHOD DidCreateNode(const nsAString& aTag, nsINode *aNewNode, nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidCreateNode(aTag, aNewNode, aResult); } \
  NS_IMETHOD DidInsertNode(nsINode *aNode, nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidInsertNode(aNode, aResult); } \
  NS_IMETHOD DidDeleteNode(nsINode *aChild, nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidDeleteNode(aChild, aResult); } \
  NS_IMETHOD DidSplitNode(nsINode *aExistingRightNode, nsINode *aNewLeftNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidSplitNode(aExistingRightNode, aNewLeftNode); } \
  NS_IMETHOD DidJoinNodes(nsINode *aLeftNode, nsINode *aRightNode, nsINode *aParent, nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidJoinNodes(aLeftNode, aRightNode, aParent, aResult); } \
  NS_IMETHOD DidInsertText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, const nsAString& aString, nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidInsertText(aTextNode, aOffset, aString, aResult); } \
  NS_IMETHOD WillDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WillDeleteText(aTextNode, aOffset, aLength); } \
  NS_IMETHOD DidDeleteText(mozilla::dom::CharacterData *aTextNode, int32_t aOffset, int32_t aLength, nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidDeleteText(aTextNode, aOffset, aLength, aResult); } \
  NS_IMETHOD WillDeleteSelection(mozilla::dom::Selection *aSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WillDeleteSelection(aSelection); } \
  NS_IMETHOD DidDeleteSelection(mozilla::dom::Selection *aSelection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DidDeleteSelection(aSelection); } 


#endif /* __gen_nsIEditActionListener_h__ */