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

#ifndef __gen_nsIBrowser_h__
#define __gen_nsIBrowser_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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 nsIPrincipal; /* forward declaration */

class nsFrameLoader; /* webidl FrameLoader */


/* starting interface:    nsIBrowser */
#define NS_IBROWSER_IID_STR "14e5a0cb-e223-4202-95e8-fe53275193ea"

#define NS_IBROWSER_IID \
  {0x14e5a0cb, 0xe223, 0x4202, \
    { 0x95, 0xe8, 0xfe, 0x53, 0x27, 0x51, 0x93, 0xea }}

class NS_NO_VTABLE nsIBrowser : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBROWSER_IID)

  /* readonly attribute FrameLoader sameProcessAsFrameLoader; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSameProcessAsFrameLoader(nsFrameLoader **aSameProcessAsFrameLoader) = 0;

  /* void dropLinks (in unsigned long linksCount, [array, size_is (linksCount)] in wstring links, in nsIPrincipal aTriggeringPrincipal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links, nsIPrincipal *aTriggeringPrincipal) = 0;

  enum {
    SWAP_DEFAULT = 0U,
    SWAP_KEEP_PERMANENT_KEY = 1U
  };

  /* void swapBrowsers (in nsIBrowser aOtherBrowser, in unsigned long aFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) = 0;

  /* void closeBrowser (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloseBrowser(void) = 0;

  /* readonly attribute boolean isRemoteBrowser; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsRemoteBrowser(bool *aIsRemoteBrowser) = 0;

  /* void enableDisableCommandsRemoteOnly (in AString action, in unsigned long enabledLength, [array, size_is (enabledLength)] in string enabledCommands, in unsigned long disabledLength, [array, size_is (disabledLength)] in string disabledCommands); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnableDisableCommandsRemoteOnly(const nsAString& action, uint32_t enabledLength, const char * *enabledCommands, uint32_t disabledLength, const char * *disabledCommands) = 0;

  /* readonly attribute nsIPrincipal contentPrincipal; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentPrincipal(nsIPrincipal **aContentPrincipal) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIBrowser, NS_IBROWSER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBROWSER \
  NS_IMETHOD GetSameProcessAsFrameLoader(nsFrameLoader **aSameProcessAsFrameLoader) override; \
  NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links, nsIPrincipal *aTriggeringPrincipal) override; \
  NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) override; \
  NS_IMETHOD CloseBrowser(void) override; \
  NS_IMETHOD GetIsRemoteBrowser(bool *aIsRemoteBrowser) override; \
  NS_IMETHOD EnableDisableCommandsRemoteOnly(const nsAString& action, uint32_t enabledLength, const char * *enabledCommands, uint32_t disabledLength, const char * *disabledCommands) override; \
  NS_IMETHOD GetContentPrincipal(nsIPrincipal **aContentPrincipal) 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_NSIBROWSER \
  nsresult GetSameProcessAsFrameLoader(nsFrameLoader **aSameProcessAsFrameLoader); \
  nsresult DropLinks(uint32_t linksCount, const char16_t * *links, nsIPrincipal *aTriggeringPrincipal); \
  nsresult SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags); \
  nsresult CloseBrowser(void); \
  nsresult GetIsRemoteBrowser(bool *aIsRemoteBrowser); \
  nsresult EnableDisableCommandsRemoteOnly(const nsAString& action, uint32_t enabledLength, const char * *enabledCommands, uint32_t disabledLength, const char * *disabledCommands); \
  nsresult GetContentPrincipal(nsIPrincipal **aContentPrincipal); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBROWSER(_to) \
  NS_IMETHOD GetSameProcessAsFrameLoader(nsFrameLoader **aSameProcessAsFrameLoader) override { return _to GetSameProcessAsFrameLoader(aSameProcessAsFrameLoader); } \
  NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links, nsIPrincipal *aTriggeringPrincipal) override { return _to DropLinks(linksCount, links, aTriggeringPrincipal); } \
  NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) override { return _to SwapBrowsers(aOtherBrowser, aFlags); } \
  NS_IMETHOD CloseBrowser(void) override { return _to CloseBrowser(); } \
  NS_IMETHOD GetIsRemoteBrowser(bool *aIsRemoteBrowser) override { return _to GetIsRemoteBrowser(aIsRemoteBrowser); } \
  NS_IMETHOD EnableDisableCommandsRemoteOnly(const nsAString& action, uint32_t enabledLength, const char * *enabledCommands, uint32_t disabledLength, const char * *disabledCommands) override { return _to EnableDisableCommandsRemoteOnly(action, enabledLength, enabledCommands, disabledLength, disabledCommands); } \
  NS_IMETHOD GetContentPrincipal(nsIPrincipal **aContentPrincipal) override { return _to GetContentPrincipal(aContentPrincipal); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBROWSER(_to) \
  NS_IMETHOD GetSameProcessAsFrameLoader(nsFrameLoader **aSameProcessAsFrameLoader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSameProcessAsFrameLoader(aSameProcessAsFrameLoader); } \
  NS_IMETHOD DropLinks(uint32_t linksCount, const char16_t * *links, nsIPrincipal *aTriggeringPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DropLinks(linksCount, links, aTriggeringPrincipal); } \
  NS_IMETHOD SwapBrowsers(nsIBrowser *aOtherBrowser, uint32_t aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SwapBrowsers(aOtherBrowser, aFlags); } \
  NS_IMETHOD CloseBrowser(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseBrowser(); } \
  NS_IMETHOD GetIsRemoteBrowser(bool *aIsRemoteBrowser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRemoteBrowser(aIsRemoteBrowser); } \
  NS_IMETHOD EnableDisableCommandsRemoteOnly(const nsAString& action, uint32_t enabledLength, const char * *enabledCommands, uint32_t disabledLength, const char * *disabledCommands) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableDisableCommandsRemoteOnly(action, enabledLength, enabledCommands, disabledLength, disabledCommands); } \
  NS_IMETHOD GetContentPrincipal(nsIPrincipal **aContentPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentPrincipal(aContentPrincipal); } 


#endif /* __gen_nsIBrowser_h__ */