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 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/browser-element/nsIBrowserElementAPI.idl
 */

#ifndef __gen_nsIBrowserElementAPI_h__
#define __gen_nsIBrowserElementAPI_h__


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

#include "js/Value.h"

#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 DOMRequest; /* webidl DOMRequest */
} // namespace dom
} // namespace mozilla

class nsFrameLoader; /* webidl FrameLoader */

#define BROWSER_ELEMENT_API_CONTRACTID "@mozilla.org/dom/browser-element-api;1"
#define BROWSER_ELEMENT_API_CID                                 \
    { 0x651db7e3, 0x1734, 0x4536,                               \
      { 0xb1, 0x5a, 0x5b, 0x3a, 0xe6, 0x44, 0x13, 0x4c } }

/* starting interface:    nsIBrowserElementAPI */
#define NS_IBROWSERELEMENTAPI_IID_STR "57758c10-6036-11e5-a837-0800200c9a66"

#define NS_IBROWSERELEMENTAPI_IID \
  {0x57758c10, 0x6036, 0x11e5, \
    { 0xa8, 0x37, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}

class NS_NO_VTABLE nsIBrowserElementAPI : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBROWSERELEMENTAPI_IID)

  enum {
    FIND_CASE_SENSITIVE = 0,
    FIND_CASE_INSENSITIVE = 1,
    FIND_FORWARD = 0,
    FIND_BACKWARD = 1
  };

  /* void destroyFrameScripts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DestroyFrameScripts(void) = 0;

  /* void setFrameLoader (in FrameLoader frameLoader); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFrameLoader(nsFrameLoader *frameLoader) = 0;

  /* void sendMouseEvent (in DOMString type, in uint32_t x, in uint32_t y, in uint32_t button, in uint32_t clickCount, in uint32_t mifiers); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendMouseEvent(const nsAString& type, uint32_t x, uint32_t y, uint32_t button, uint32_t clickCount, uint32_t mifiers) = 0;

  /* void sendTouchEvent (in DOMString aType, [array, size_is (count), const] in uint32_t aIdentifiers, [array, size_is (count), const] in int32_t aXs, [array, size_is (count), const] in int32_t aYs, [array, size_is (count), const] in uint32_t aRxs, [array, size_is (count), const] in uint32_t aRys, [array, size_is (count), const] in float aRotationAngles, [array, size_is (count), const] in float aForces, in uint32_t count, in long aModifiers); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendTouchEvent(const nsAString& aType, const uint32_t *aIdentifiers, const int32_t *aXs, const int32_t *aYs, const uint32_t *aRxs, const uint32_t *aRys, const float *aRotationAngles, const float *aForces, uint32_t count, int32_t aModifiers) = 0;

  /* void goBack (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GoBack(void) = 0;

  /* void goForward (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GoForward(void) = 0;

  /* void reload (in boolean hardReload); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Reload(bool hardReload) = 0;

  /* void stop (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Stop(void) = 0;

  /* DOMRequest download (in DOMString url, [optional] in jsval options); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Download(const nsAString& url, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) = 0;

  /* DOMRequest purgeHistory (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PurgeHistory(mozilla::dom::DOMRequest **_retval) = 0;

  /* DOMRequest getScreenshot (in uint32_t width, in uint32_t height, [optional] in DOMString mimeType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScreenshot(uint32_t width, uint32_t height, const nsAString& mimeType, mozilla::dom::DOMRequest **_retval) = 0;

  /* void zoom (in float zoom); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Zoom(float zoom) = 0;

  /* DOMRequest getCanGoBack (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanGoBack(mozilla::dom::DOMRequest **_retval) = 0;

  /* DOMRequest getCanGoForward (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanGoForward(mozilla::dom::DOMRequest **_retval) = 0;

  /* DOMRequest getContentDimensions (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentDimensions(mozilla::dom::DOMRequest **_retval) = 0;

  /* void findAll (in DOMString searchString, in long caseSensitivity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindAll(const nsAString& searchString, int32_t caseSensitivity) = 0;

  /* void findNext (in long direction); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FindNext(int32_t direction) = 0;

  /* void clearMatch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearMatch(void) = 0;

  /* void addNextPaintListener (in jsval listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddNextPaintListener(JS::HandleValue listener) = 0;

  /* void removeNextPaintListener (in jsval listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveNextPaintListener(JS::HandleValue listener) = 0;

  /* DOMRequest executeScript (in DOMString script, in jsval options); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExecuteScript(const nsAString& script, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) = 0;

  /* DOMRequest getWebManifest (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWebManifest(mozilla::dom::DOMRequest **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIBrowserElementAPI, NS_IBROWSERELEMENTAPI_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBROWSERELEMENTAPI \
  NS_IMETHOD DestroyFrameScripts(void) override; \
  NS_IMETHOD SetFrameLoader(nsFrameLoader *frameLoader) override; \
  NS_IMETHOD SendMouseEvent(const nsAString& type, uint32_t x, uint32_t y, uint32_t button, uint32_t clickCount, uint32_t mifiers) override; \
  NS_IMETHOD SendTouchEvent(const nsAString& aType, const uint32_t *aIdentifiers, const int32_t *aXs, const int32_t *aYs, const uint32_t *aRxs, const uint32_t *aRys, const float *aRotationAngles, const float *aForces, uint32_t count, int32_t aModifiers) override; \
  NS_IMETHOD GoBack(void) override; \
  NS_IMETHOD GoForward(void) override; \
  NS_IMETHOD Reload(bool hardReload) override; \
  NS_IMETHOD Stop(void) override; \
  NS_IMETHOD Download(const nsAString& url, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) override; \
  NS_IMETHOD PurgeHistory(mozilla::dom::DOMRequest **_retval) override; \
  NS_IMETHOD GetScreenshot(uint32_t width, uint32_t height, const nsAString& mimeType, mozilla::dom::DOMRequest **_retval) override; \
  NS_IMETHOD Zoom(float zoom) override; \
  NS_IMETHOD GetCanGoBack(mozilla::dom::DOMRequest **_retval) override; \
  NS_IMETHOD GetCanGoForward(mozilla::dom::DOMRequest **_retval) override; \
  NS_IMETHOD GetContentDimensions(mozilla::dom::DOMRequest **_retval) override; \
  NS_IMETHOD FindAll(const nsAString& searchString, int32_t caseSensitivity) override; \
  NS_IMETHOD FindNext(int32_t direction) override; \
  NS_IMETHOD ClearMatch(void) override; \
  NS_IMETHOD AddNextPaintListener(JS::HandleValue listener) override; \
  NS_IMETHOD RemoveNextPaintListener(JS::HandleValue listener) override; \
  NS_IMETHOD ExecuteScript(const nsAString& script, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) override; \
  NS_IMETHOD GetWebManifest(mozilla::dom::DOMRequest **_retval) 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_NSIBROWSERELEMENTAPI \
  nsresult DestroyFrameScripts(void); \
  nsresult SetFrameLoader(nsFrameLoader *frameLoader); \
  nsresult SendMouseEvent(const nsAString& type, uint32_t x, uint32_t y, uint32_t button, uint32_t clickCount, uint32_t mifiers); \
  nsresult SendTouchEvent(const nsAString& aType, const uint32_t *aIdentifiers, const int32_t *aXs, const int32_t *aYs, const uint32_t *aRxs, const uint32_t *aRys, const float *aRotationAngles, const float *aForces, uint32_t count, int32_t aModifiers); \
  nsresult GoBack(void); \
  nsresult GoForward(void); \
  nsresult Reload(bool hardReload); \
  nsresult Stop(void); \
  nsresult Download(const nsAString& url, JS::HandleValue options, mozilla::dom::DOMRequest **_retval); \
  nsresult PurgeHistory(mozilla::dom::DOMRequest **_retval); \
  nsresult GetScreenshot(uint32_t width, uint32_t height, const nsAString& mimeType, mozilla::dom::DOMRequest **_retval); \
  nsresult Zoom(float zoom); \
  nsresult GetCanGoBack(mozilla::dom::DOMRequest **_retval); \
  nsresult GetCanGoForward(mozilla::dom::DOMRequest **_retval); \
  nsresult GetContentDimensions(mozilla::dom::DOMRequest **_retval); \
  nsresult FindAll(const nsAString& searchString, int32_t caseSensitivity); \
  nsresult FindNext(int32_t direction); \
  nsresult ClearMatch(void); \
  nsresult AddNextPaintListener(JS::HandleValue listener); \
  nsresult RemoveNextPaintListener(JS::HandleValue listener); \
  nsresult ExecuteScript(const nsAString& script, JS::HandleValue options, mozilla::dom::DOMRequest **_retval); \
  nsresult GetWebManifest(mozilla::dom::DOMRequest **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBROWSERELEMENTAPI(_to) \
  NS_IMETHOD DestroyFrameScripts(void) override { return _to DestroyFrameScripts(); } \
  NS_IMETHOD SetFrameLoader(nsFrameLoader *frameLoader) override { return _to SetFrameLoader(frameLoader); } \
  NS_IMETHOD SendMouseEvent(const nsAString& type, uint32_t x, uint32_t y, uint32_t button, uint32_t clickCount, uint32_t mifiers) override { return _to SendMouseEvent(type, x, y, button, clickCount, mifiers); } \
  NS_IMETHOD SendTouchEvent(const nsAString& aType, const uint32_t *aIdentifiers, const int32_t *aXs, const int32_t *aYs, const uint32_t *aRxs, const uint32_t *aRys, const float *aRotationAngles, const float *aForces, uint32_t count, int32_t aModifiers) override { return _to SendTouchEvent(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers); } \
  NS_IMETHOD GoBack(void) override { return _to GoBack(); } \
  NS_IMETHOD GoForward(void) override { return _to GoForward(); } \
  NS_IMETHOD Reload(bool hardReload) override { return _to Reload(hardReload); } \
  NS_IMETHOD Stop(void) override { return _to Stop(); } \
  NS_IMETHOD Download(const nsAString& url, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) override { return _to Download(url, options, _retval); } \
  NS_IMETHOD PurgeHistory(mozilla::dom::DOMRequest **_retval) override { return _to PurgeHistory(_retval); } \
  NS_IMETHOD GetScreenshot(uint32_t width, uint32_t height, const nsAString& mimeType, mozilla::dom::DOMRequest **_retval) override { return _to GetScreenshot(width, height, mimeType, _retval); } \
  NS_IMETHOD Zoom(float zoom) override { return _to Zoom(zoom); } \
  NS_IMETHOD GetCanGoBack(mozilla::dom::DOMRequest **_retval) override { return _to GetCanGoBack(_retval); } \
  NS_IMETHOD GetCanGoForward(mozilla::dom::DOMRequest **_retval) override { return _to GetCanGoForward(_retval); } \
  NS_IMETHOD GetContentDimensions(mozilla::dom::DOMRequest **_retval) override { return _to GetContentDimensions(_retval); } \
  NS_IMETHOD FindAll(const nsAString& searchString, int32_t caseSensitivity) override { return _to FindAll(searchString, caseSensitivity); } \
  NS_IMETHOD FindNext(int32_t direction) override { return _to FindNext(direction); } \
  NS_IMETHOD ClearMatch(void) override { return _to ClearMatch(); } \
  NS_IMETHOD AddNextPaintListener(JS::HandleValue listener) override { return _to AddNextPaintListener(listener); } \
  NS_IMETHOD RemoveNextPaintListener(JS::HandleValue listener) override { return _to RemoveNextPaintListener(listener); } \
  NS_IMETHOD ExecuteScript(const nsAString& script, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) override { return _to ExecuteScript(script, options, _retval); } \
  NS_IMETHOD GetWebManifest(mozilla::dom::DOMRequest **_retval) override { return _to GetWebManifest(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBROWSERELEMENTAPI(_to) \
  NS_IMETHOD DestroyFrameScripts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DestroyFrameScripts(); } \
  NS_IMETHOD SetFrameLoader(nsFrameLoader *frameLoader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFrameLoader(frameLoader); } \
  NS_IMETHOD SendMouseEvent(const nsAString& type, uint32_t x, uint32_t y, uint32_t button, uint32_t clickCount, uint32_t mifiers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMouseEvent(type, x, y, button, clickCount, mifiers); } \
  NS_IMETHOD SendTouchEvent(const nsAString& aType, const uint32_t *aIdentifiers, const int32_t *aXs, const int32_t *aYs, const uint32_t *aRxs, const uint32_t *aRys, const float *aRotationAngles, const float *aForces, uint32_t count, int32_t aModifiers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendTouchEvent(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers); } \
  NS_IMETHOD GoBack(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GoBack(); } \
  NS_IMETHOD GoForward(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GoForward(); } \
  NS_IMETHOD Reload(bool hardReload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reload(hardReload); } \
  NS_IMETHOD Stop(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
  NS_IMETHOD Download(const nsAString& url, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Download(url, options, _retval); } \
  NS_IMETHOD PurgeHistory(mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PurgeHistory(_retval); } \
  NS_IMETHOD GetScreenshot(uint32_t width, uint32_t height, const nsAString& mimeType, mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenshot(width, height, mimeType, _retval); } \
  NS_IMETHOD Zoom(float zoom) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Zoom(zoom); } \
  NS_IMETHOD GetCanGoBack(mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGoBack(_retval); } \
  NS_IMETHOD GetCanGoForward(mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanGoForward(_retval); } \
  NS_IMETHOD GetContentDimensions(mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDimensions(_retval); } \
  NS_IMETHOD FindAll(const nsAString& searchString, int32_t caseSensitivity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAll(searchString, caseSensitivity); } \
  NS_IMETHOD FindNext(int32_t direction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindNext(direction); } \
  NS_IMETHOD ClearMatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearMatch(); } \
  NS_IMETHOD AddNextPaintListener(JS::HandleValue listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNextPaintListener(listener); } \
  NS_IMETHOD RemoveNextPaintListener(JS::HandleValue listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveNextPaintListener(listener); } \
  NS_IMETHOD ExecuteScript(const nsAString& script, JS::HandleValue options, mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteScript(script, options, _retval); } \
  NS_IMETHOD GetWebManifest(mozilla::dom::DOMRequest **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWebManifest(_retval); } 


#endif /* __gen_nsIBrowserElementAPI_h__ */