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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/interfaces/base/nsIBrowserDOMWindow.idl
 */

#ifndef __gen_nsIBrowserDOMWindow_h__
#define __gen_nsIBrowserDOMWindow_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
class mozIDOMWindowProxy; /* forward declaration */

class nsIDOMWindow; /* forward declaration */

class nsIURI; /* forward declaration */

class nsIFrameLoaderOwner; /* forward declaration */

class nsIPrincipal; /* forward declaration */


/* starting interface:    nsIOpenURIInFrameParams */
#define NS_IOPENURIINFRAMEPARAMS_IID_STR "e774db14-79ac-4156-a7a3-aa3fd0a22c10"

#define NS_IOPENURIINFRAMEPARAMS_IID \
  {0xe774db14, 0x79ac, 0x4156, \
    { 0xa7, 0xa3, 0xaa, 0x3f, 0xd0, 0xa2, 0x2c, 0x10 }}

class NS_NO_VTABLE nsIOpenURIInFrameParams : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOPENURIINFRAMEPARAMS_IID)

  /* attribute DOMString referrer; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReferrer(nsAString& aReferrer) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetReferrer(const nsAString& aReferrer) = 0;

  /* attribute unsigned long referrerPolicy; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetReferrerPolicy(uint32_t aReferrerPolicy) = 0;

  /* readonly attribute boolean isPrivate; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsPrivate(bool *aIsPrivate) = 0;

  /* attribute nsIPrincipal triggeringPrincipal; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTriggeringPrincipal(nsIPrincipal *aTriggeringPrincipal) = 0;

  /* readonly attribute nsIFrameLoaderOwner openerBrowser; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOpenerBrowser(nsIFrameLoaderOwner **aOpenerBrowser) = 0;

  /* [implicit_jscontext] readonly attribute jsval openerOriginAttributes; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOpenerOriginAttributes(JSContext* cx, JS::MutableHandleValue aOpenerOriginAttributes) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIOpenURIInFrameParams, NS_IOPENURIINFRAMEPARAMS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIOPENURIINFRAMEPARAMS \
  NS_IMETHOD GetReferrer(nsAString& aReferrer) override; \
  NS_IMETHOD SetReferrer(const nsAString& aReferrer) override; \
  NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) override; \
  NS_IMETHOD SetReferrerPolicy(uint32_t aReferrerPolicy) override; \
  NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override; \
  NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) override; \
  NS_IMETHOD SetTriggeringPrincipal(nsIPrincipal *aTriggeringPrincipal) override; \
  NS_IMETHOD GetOpenerBrowser(nsIFrameLoaderOwner **aOpenerBrowser) override; \
  NS_IMETHOD GetOpenerOriginAttributes(JSContext* cx, JS::MutableHandleValue aOpenerOriginAttributes) 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_NSIOPENURIINFRAMEPARAMS \
  nsresult GetReferrer(nsAString& aReferrer); \
  nsresult SetReferrer(const nsAString& aReferrer); \
  nsresult GetReferrerPolicy(uint32_t *aReferrerPolicy); \
  nsresult SetReferrerPolicy(uint32_t aReferrerPolicy); \
  nsresult GetIsPrivate(bool *aIsPrivate); \
  nsresult GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal); \
  nsresult SetTriggeringPrincipal(nsIPrincipal *aTriggeringPrincipal); \
  nsresult GetOpenerBrowser(nsIFrameLoaderOwner **aOpenerBrowser); \
  nsresult GetOpenerOriginAttributes(JSContext* cx, JS::MutableHandleValue aOpenerOriginAttributes); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIOPENURIINFRAMEPARAMS(_to) \
  NS_IMETHOD GetReferrer(nsAString& aReferrer) override { return _to GetReferrer(aReferrer); } \
  NS_IMETHOD SetReferrer(const nsAString& aReferrer) override { return _to SetReferrer(aReferrer); } \
  NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) override { return _to GetReferrerPolicy(aReferrerPolicy); } \
  NS_IMETHOD SetReferrerPolicy(uint32_t aReferrerPolicy) override { return _to SetReferrerPolicy(aReferrerPolicy); } \
  NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override { return _to GetIsPrivate(aIsPrivate); } \
  NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) override { return _to GetTriggeringPrincipal(aTriggeringPrincipal); } \
  NS_IMETHOD SetTriggeringPrincipal(nsIPrincipal *aTriggeringPrincipal) override { return _to SetTriggeringPrincipal(aTriggeringPrincipal); } \
  NS_IMETHOD GetOpenerBrowser(nsIFrameLoaderOwner **aOpenerBrowser) override { return _to GetOpenerBrowser(aOpenerBrowser); } \
  NS_IMETHOD GetOpenerOriginAttributes(JSContext* cx, JS::MutableHandleValue aOpenerOriginAttributes) override { return _to GetOpenerOriginAttributes(cx, aOpenerOriginAttributes); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIOPENURIINFRAMEPARAMS(_to) \
  NS_IMETHOD GetReferrer(nsAString& aReferrer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
  NS_IMETHOD SetReferrer(const nsAString& aReferrer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrer(aReferrer); } \
  NS_IMETHOD GetReferrerPolicy(uint32_t *aReferrerPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrerPolicy(aReferrerPolicy); } \
  NS_IMETHOD SetReferrerPolicy(uint32_t aReferrerPolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrerPolicy(aReferrerPolicy); } \
  NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPrivate(aIsPrivate); } \
  NS_IMETHOD GetTriggeringPrincipal(nsIPrincipal **aTriggeringPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringPrincipal(aTriggeringPrincipal); } \
  NS_IMETHOD SetTriggeringPrincipal(nsIPrincipal *aTriggeringPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTriggeringPrincipal(aTriggeringPrincipal); } \
  NS_IMETHOD GetOpenerBrowser(nsIFrameLoaderOwner **aOpenerBrowser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpenerBrowser(aOpenerBrowser); } \
  NS_IMETHOD GetOpenerOriginAttributes(JSContext* cx, JS::MutableHandleValue aOpenerOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpenerOriginAttributes(cx, aOpenerOriginAttributes); } 


/* starting interface:    nsIBrowserDOMWindow */
#define NS_IBROWSERDOMWINDOW_IID_STR "2a9bb880-5d73-40f3-8152-c60c8d137a14"

#define NS_IBROWSERDOMWINDOW_IID \
  {0x2a9bb880, 0x5d73, 0x40f3, \
    { 0x81, 0x52, 0xc6, 0x0c, 0x8d, 0x13, 0x7a, 0x14 }}

class NS_NO_VTABLE nsIBrowserDOMWindow : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBROWSERDOMWINDOW_IID)

  enum {
    OPEN_DEFAULTWINDOW = 0,
    OPEN_CURRENTWINDOW = 1,
    OPEN_NEWWINDOW = 2,
    OPEN_NEWTAB = 3,
    OPEN_SWITCHTAB = 4,
    OPEN_NEW = 0,
    OPEN_EXTERNAL = 1,
    OPEN_NO_OPENER = 4
  };

  /* mozIDOMWindowProxy createContentWindow (in nsIURI aURI, in mozIDOMWindowProxy aOpener, in short aWhere, in long aFlags, in nsIPrincipal aTriggeringPrincipal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateContentWindow(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) = 0;

  /* nsIFrameLoaderOwner createContentWindowInFrame (in nsIURI aURI, in nsIOpenURIInFrameParams params, in short aWhere, in long aFlags, in unsigned long long aNextTabParentId, in AString aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateContentWindowInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) = 0;

  /* mozIDOMWindowProxy openURI (in nsIURI aURI, in mozIDOMWindowProxy aOpener, in short aWhere, in long aFlags, in nsIPrincipal aTriggeringPrincipal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenURI(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) = 0;

  /* nsIFrameLoaderOwner openURIInFrame (in nsIURI aURI, in nsIOpenURIInFrameParams params, in short aWhere, in long aFlags, in unsigned long long aNextTabParentId, in AString aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenURIInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) = 0;

  /* boolean isTabContentWindow (in nsIDOMWindow aWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsTabContentWindow(nsIDOMWindow *aWindow, bool *_retval) = 0;

  /* boolean canClose (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanClose(bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIBrowserDOMWindow, NS_IBROWSERDOMWINDOW_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBROWSERDOMWINDOW \
  NS_IMETHOD CreateContentWindow(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) override; \
  NS_IMETHOD CreateContentWindowInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) override; \
  NS_IMETHOD OpenURI(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) override; \
  NS_IMETHOD OpenURIInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) override; \
  NS_IMETHOD IsTabContentWindow(nsIDOMWindow *aWindow, bool *_retval) override; \
  NS_IMETHOD CanClose(bool *_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_NSIBROWSERDOMWINDOW \
  nsresult CreateContentWindow(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval); \
  nsresult CreateContentWindowInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval); \
  nsresult OpenURI(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval); \
  nsresult OpenURIInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval); \
  nsresult IsTabContentWindow(nsIDOMWindow *aWindow, bool *_retval); \
  nsresult CanClose(bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBROWSERDOMWINDOW(_to) \
  NS_IMETHOD CreateContentWindow(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) override { return _to CreateContentWindow(aURI, aOpener, aWhere, aFlags, aTriggeringPrincipal, _retval); } \
  NS_IMETHOD CreateContentWindowInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) override { return _to CreateContentWindowInFrame(aURI, params, aWhere, aFlags, aNextTabParentId, aName, _retval); } \
  NS_IMETHOD OpenURI(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) override { return _to OpenURI(aURI, aOpener, aWhere, aFlags, aTriggeringPrincipal, _retval); } \
  NS_IMETHOD OpenURIInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) override { return _to OpenURIInFrame(aURI, params, aWhere, aFlags, aNextTabParentId, aName, _retval); } \
  NS_IMETHOD IsTabContentWindow(nsIDOMWindow *aWindow, bool *_retval) override { return _to IsTabContentWindow(aWindow, _retval); } \
  NS_IMETHOD CanClose(bool *_retval) override { return _to CanClose(_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_NSIBROWSERDOMWINDOW(_to) \
  NS_IMETHOD CreateContentWindow(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContentWindow(aURI, aOpener, aWhere, aFlags, aTriggeringPrincipal, _retval); } \
  NS_IMETHOD CreateContentWindowInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContentWindowInFrame(aURI, params, aWhere, aFlags, aNextTabParentId, aName, _retval); } \
  NS_IMETHOD OpenURI(nsIURI *aURI, mozIDOMWindowProxy *aOpener, int16_t aWhere, int32_t aFlags, nsIPrincipal *aTriggeringPrincipal, mozIDOMWindowProxy **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenURI(aURI, aOpener, aWhere, aFlags, aTriggeringPrincipal, _retval); } \
  NS_IMETHOD OpenURIInFrame(nsIURI *aURI, nsIOpenURIInFrameParams *params, int16_t aWhere, int32_t aFlags, uint64_t aNextTabParentId, const nsAString& aName, nsIFrameLoaderOwner **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenURIInFrame(aURI, params, aWhere, aFlags, aNextTabParentId, aName, _retval); } \
  NS_IMETHOD IsTabContentWindow(nsIDOMWindow *aWindow, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTabContentWindow(aWindow, _retval); } \
  NS_IMETHOD CanClose(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanClose(_retval); } 


#endif /* __gen_nsIBrowserDOMWindow_h__ */