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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/editor/composer/nsIEditingSession.idl
 */

#ifndef __gen_nsIEditingSession_h__
#define __gen_nsIEditingSession_h__


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

#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

/* 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 */

class nsIEditor; /* forward declaration */

class mozIDOMWindowProxy;
namespace mozilla {
class HTMLEditor;
} // namespace mozilla

/* starting interface:    nsIEditingSession */
#define NS_IEDITINGSESSION_IID_STR "24f963d1-e6fc-43ea-a206-99ac5fcc5265"

#define NS_IEDITINGSESSION_IID \
  {0x24f963d1, 0xe6fc, 0x43ea, \
    { 0xa2, 0x06, 0x99, 0xac, 0x5f, 0xcc, 0x52, 0x65 }}

class nsIEditingSession : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITINGSESSION_IID)

  enum {
    eEditorOK = 0,
    eEditorCreationInProgress = 1,
    eEditorErrorCantEditMimeType = 2,
    eEditorErrorFileNotFound = 3,
    eEditorErrorCantEditFramesets = 8,
    eEditorErrorUnknown = 9
  };

  /* readonly attribute unsigned long editorStatus; */
  NS_IMETHOD GetEditorStatus(uint32_t *aEditorStatus) = 0;

  /* void makeWindowEditable (in mozIDOMWindowProxy window, in string aEditorType, in boolean doAfterUriLoad, in boolean aMakeWholeDocumentEditable, in boolean aInteractive); */
  NS_IMETHOD MakeWindowEditable(mozIDOMWindowProxy *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive) = 0;

  /* boolean windowIsEditable (in mozIDOMWindowProxy window); */
  NS_IMETHOD WindowIsEditable(mozIDOMWindowProxy *window, bool *_retval) = 0;

  /* nsIEditor getEditorForWindow (in mozIDOMWindowProxy window); */
  NS_IMETHOD GetEditorForWindow(mozIDOMWindowProxy *window, nsIEditor **_retval) = 0;

  /* void setupEditorOnWindow (in mozIDOMWindowProxy window); */
  NS_IMETHOD SetupEditorOnWindow(mozIDOMWindowProxy *window) = 0;

  /* void tearDownEditorOnWindow (in mozIDOMWindowProxy window); */
  NS_IMETHOD TearDownEditorOnWindow(mozIDOMWindowProxy *window) = 0;

  /* void setEditorOnControllers (in mozIDOMWindowProxy aWindow, in nsIEditor aEditor); */
  NS_IMETHOD SetEditorOnControllers(mozIDOMWindowProxy *aWindow, nsIEditor *aEditor) = 0;

  /* void disableJSAndPlugins (in mozIDOMWindowProxy aWindow); */
  NS_IMETHOD DisableJSAndPlugins(mozIDOMWindowProxy *aWindow) = 0;

  /* void restoreJSAndPlugins (in mozIDOMWindowProxy aWindow); */
  NS_IMETHOD RestoreJSAndPlugins(mozIDOMWindowProxy *aWindow) = 0;

  /* void detachFromWindow (in mozIDOMWindowProxy aWindow); */
  NS_IMETHOD DetachFromWindow(mozIDOMWindowProxy *aWindow) = 0;

  /* void reattachToWindow (in mozIDOMWindowProxy aWindow); */
  NS_IMETHOD ReattachToWindow(mozIDOMWindowProxy *aWindow) = 0;

  /* readonly attribute boolean jsAndPluginsDisabled; */
  NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled) = 0;

   /**
   * This method is implemented with nsIDocShell::GetHTMLEditor().  I.e.,
   * This method doesn't depend on nsEditingSession.  Therefore, even if
   * there were some implementation of nsIEditingSession interface, this
   * would be safe to use.
   */
  mozilla::HTMLEditor* GetHTMLEditorForWindow(mozIDOMWindowProxy* aWindow);
};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditingSession, NS_IEDITINGSESSION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEDITINGSESSION \
  NS_IMETHOD GetEditorStatus(uint32_t *aEditorStatus) override; \
  NS_IMETHOD MakeWindowEditable(mozIDOMWindowProxy *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive) override; \
  NS_IMETHOD WindowIsEditable(mozIDOMWindowProxy *window, bool *_retval) override; \
  NS_IMETHOD GetEditorForWindow(mozIDOMWindowProxy *window, nsIEditor **_retval) override; \
  NS_IMETHOD SetupEditorOnWindow(mozIDOMWindowProxy *window) override; \
  NS_IMETHOD TearDownEditorOnWindow(mozIDOMWindowProxy *window) override; \
  NS_IMETHOD SetEditorOnControllers(mozIDOMWindowProxy *aWindow, nsIEditor *aEditor) override; \
  NS_IMETHOD DisableJSAndPlugins(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD RestoreJSAndPlugins(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD DetachFromWindow(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD ReattachToWindow(mozIDOMWindowProxy *aWindow) override; \
  NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled) 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_NSIEDITINGSESSION \
  nsresult GetEditorStatus(uint32_t *aEditorStatus); \
  nsresult MakeWindowEditable(mozIDOMWindowProxy *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive); \
  nsresult WindowIsEditable(mozIDOMWindowProxy *window, bool *_retval); \
  nsresult GetEditorForWindow(mozIDOMWindowProxy *window, nsIEditor **_retval); \
  nsresult SetupEditorOnWindow(mozIDOMWindowProxy *window); \
  nsresult TearDownEditorOnWindow(mozIDOMWindowProxy *window); \
  nsresult SetEditorOnControllers(mozIDOMWindowProxy *aWindow, nsIEditor *aEditor); \
  nsresult DisableJSAndPlugins(mozIDOMWindowProxy *aWindow); \
  nsresult RestoreJSAndPlugins(mozIDOMWindowProxy *aWindow); \
  nsresult DetachFromWindow(mozIDOMWindowProxy *aWindow); \
  nsresult ReattachToWindow(mozIDOMWindowProxy *aWindow); \
  nsresult GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEDITINGSESSION(_to) \
  NS_IMETHOD GetEditorStatus(uint32_t *aEditorStatus) override { return _to GetEditorStatus(aEditorStatus); } \
  NS_IMETHOD MakeWindowEditable(mozIDOMWindowProxy *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive) override { return _to MakeWindowEditable(window, aEditorType, doAfterUriLoad, aMakeWholeDocumentEditable, aInteractive); } \
  NS_IMETHOD WindowIsEditable(mozIDOMWindowProxy *window, bool *_retval) override { return _to WindowIsEditable(window, _retval); } \
  NS_IMETHOD GetEditorForWindow(mozIDOMWindowProxy *window, nsIEditor **_retval) override { return _to GetEditorForWindow(window, _retval); } \
  NS_IMETHOD SetupEditorOnWindow(mozIDOMWindowProxy *window) override { return _to SetupEditorOnWindow(window); } \
  NS_IMETHOD TearDownEditorOnWindow(mozIDOMWindowProxy *window) override { return _to TearDownEditorOnWindow(window); } \
  NS_IMETHOD SetEditorOnControllers(mozIDOMWindowProxy *aWindow, nsIEditor *aEditor) override { return _to SetEditorOnControllers(aWindow, aEditor); } \
  NS_IMETHOD DisableJSAndPlugins(mozIDOMWindowProxy *aWindow) override { return _to DisableJSAndPlugins(aWindow); } \
  NS_IMETHOD RestoreJSAndPlugins(mozIDOMWindowProxy *aWindow) override { return _to RestoreJSAndPlugins(aWindow); } \
  NS_IMETHOD DetachFromWindow(mozIDOMWindowProxy *aWindow) override { return _to DetachFromWindow(aWindow); } \
  NS_IMETHOD ReattachToWindow(mozIDOMWindowProxy *aWindow) override { return _to ReattachToWindow(aWindow); } \
  NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled) override { return _to GetJsAndPluginsDisabled(aJsAndPluginsDisabled); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEDITINGSESSION(_to) \
  NS_IMETHOD GetEditorStatus(uint32_t *aEditorStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditorStatus(aEditorStatus); } \
  NS_IMETHOD MakeWindowEditable(mozIDOMWindowProxy *window, const char * aEditorType, bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeWindowEditable(window, aEditorType, doAfterUriLoad, aMakeWholeDocumentEditable, aInteractive); } \
  NS_IMETHOD WindowIsEditable(mozIDOMWindowProxy *window, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WindowIsEditable(window, _retval); } \
  NS_IMETHOD GetEditorForWindow(mozIDOMWindowProxy *window, nsIEditor **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditorForWindow(window, _retval); } \
  NS_IMETHOD SetupEditorOnWindow(mozIDOMWindowProxy *window) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupEditorOnWindow(window); } \
  NS_IMETHOD TearDownEditorOnWindow(mozIDOMWindowProxy *window) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TearDownEditorOnWindow(window); } \
  NS_IMETHOD SetEditorOnControllers(mozIDOMWindowProxy *aWindow, nsIEditor *aEditor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEditorOnControllers(aWindow, aEditor); } \
  NS_IMETHOD DisableJSAndPlugins(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableJSAndPlugins(aWindow); } \
  NS_IMETHOD RestoreJSAndPlugins(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RestoreJSAndPlugins(aWindow); } \
  NS_IMETHOD DetachFromWindow(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachFromWindow(aWindow); } \
  NS_IMETHOD ReattachToWindow(mozIDOMWindowProxy *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReattachToWindow(aWindow); } \
  NS_IMETHOD GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJsAndPluginsDisabled(aJsAndPluginsDisabled); } \


#endif /* __gen_nsIEditingSession_h__ */