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

#ifndef __gen_nsIDocShellTreeOwner_h__
#define __gen_nsIDocShellTreeOwner_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 nsIDocShellTreeItem; /* forward declaration */

class nsITabParent; /* forward declaration */


/* starting interface:    nsIDocShellTreeOwner */
#define NS_IDOCSHELLTREEOWNER_IID_STR "0e3dc4b1-4cea-4a37-af71-79f0afd07574"

#define NS_IDOCSHELLTREEOWNER_IID \
  {0x0e3dc4b1, 0x4cea, 0x4a37, \
    { 0xaf, 0x71, 0x79, 0xf0, 0xaf, 0xd0, 0x75, 0x74 }}

class NS_NO_VTABLE nsIDocShellTreeOwner : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCSHELLTREEOWNER_IID)

  /* void contentShellAdded (in nsIDocShellTreeItem aContentShell, in boolean aPrimary); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary) = 0;

  /* void contentShellRemoved (in nsIDocShellTreeItem aContentShell); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell) = 0;

  /* readonly attribute nsIDocShellTreeItem primaryContentShell; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem **aPrimaryContentShell) = 0;

  /* void tabParentAdded (in nsITabParent aTab, in boolean aPrimary); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TabParentAdded(nsITabParent *aTab, bool aPrimary) = 0;

  /* void tabParentRemoved (in nsITabParent aTab); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TabParentRemoved(nsITabParent *aTab) = 0;

  /* readonly attribute nsITabParent primaryTabParent; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrimaryTabParent(nsITabParent **aPrimaryTabParent) = 0;

  /* void sizeShellTo (in nsIDocShellTreeItem shell, in long cx, in long cy); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, int32_t cx, int32_t cy) = 0;

  /* void getPrimaryContentSize (out long width, out long height); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrimaryContentSize(int32_t *width, int32_t *height) = 0;

  /* void setPrimaryContentSize (in long width, in long height); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPrimaryContentSize(int32_t width, int32_t height) = 0;

  /* void getRootShellSize (out long width, out long height); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRootShellSize(int32_t *width, int32_t *height) = 0;

  /* void setRootShellSize (in long width, in long height); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRootShellSize(int32_t width, int32_t height) = 0;

  /* void setPersistence (in boolean aPersistPosition, in boolean aPersistSize, in boolean aPersistSizeMode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode) = 0;

  /* void getPersistence (out boolean aPersistPosition, out boolean aPersistSize, out boolean aPersistSizeMode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPersistence(bool *aPersistPosition, bool *aPersistSize, bool *aPersistSizeMode) = 0;

  /* readonly attribute unsigned long tabCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTabCount(uint32_t *aTabCount) = 0;

  /* readonly attribute bool hasPrimaryContent; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHasPrimaryContent(bool *aHasPrimaryContent) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocShellTreeOwner, NS_IDOCSHELLTREEOWNER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOCSHELLTREEOWNER \
  NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary) override; \
  NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell) override; \
  NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem **aPrimaryContentShell) override; \
  NS_IMETHOD TabParentAdded(nsITabParent *aTab, bool aPrimary) override; \
  NS_IMETHOD TabParentRemoved(nsITabParent *aTab) override; \
  NS_IMETHOD GetPrimaryTabParent(nsITabParent **aPrimaryTabParent) override; \
  NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, int32_t cx, int32_t cy) override; \
  NS_IMETHOD GetPrimaryContentSize(int32_t *width, int32_t *height) override; \
  NS_IMETHOD SetPrimaryContentSize(int32_t width, int32_t height) override; \
  NS_IMETHOD GetRootShellSize(int32_t *width, int32_t *height) override; \
  NS_IMETHOD SetRootShellSize(int32_t width, int32_t height) override; \
  NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode) override; \
  NS_IMETHOD GetPersistence(bool *aPersistPosition, bool *aPersistSize, bool *aPersistSizeMode) override; \
  NS_IMETHOD GetTabCount(uint32_t *aTabCount) override; \
  NS_IMETHOD GetHasPrimaryContent(bool *aHasPrimaryContent) 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_NSIDOCSHELLTREEOWNER \
  nsresult ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary); \
  nsresult ContentShellRemoved(nsIDocShellTreeItem *aContentShell); \
  nsresult GetPrimaryContentShell(nsIDocShellTreeItem **aPrimaryContentShell); \
  nsresult TabParentAdded(nsITabParent *aTab, bool aPrimary); \
  nsresult TabParentRemoved(nsITabParent *aTab); \
  nsresult GetPrimaryTabParent(nsITabParent **aPrimaryTabParent); \
  nsresult SizeShellTo(nsIDocShellTreeItem *shell, int32_t cx, int32_t cy); \
  nsresult GetPrimaryContentSize(int32_t *width, int32_t *height); \
  nsresult SetPrimaryContentSize(int32_t width, int32_t height); \
  nsresult GetRootShellSize(int32_t *width, int32_t *height); \
  nsresult SetRootShellSize(int32_t width, int32_t height); \
  nsresult SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode); \
  nsresult GetPersistence(bool *aPersistPosition, bool *aPersistSize, bool *aPersistSizeMode); \
  nsresult GetTabCount(uint32_t *aTabCount); \
  nsresult GetHasPrimaryContent(bool *aHasPrimaryContent); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOCSHELLTREEOWNER(_to) \
  NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary) override { return _to ContentShellAdded(aContentShell, aPrimary); } \
  NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell) override { return _to ContentShellRemoved(aContentShell); } \
  NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem **aPrimaryContentShell) override { return _to GetPrimaryContentShell(aPrimaryContentShell); } \
  NS_IMETHOD TabParentAdded(nsITabParent *aTab, bool aPrimary) override { return _to TabParentAdded(aTab, aPrimary); } \
  NS_IMETHOD TabParentRemoved(nsITabParent *aTab) override { return _to TabParentRemoved(aTab); } \
  NS_IMETHOD GetPrimaryTabParent(nsITabParent **aPrimaryTabParent) override { return _to GetPrimaryTabParent(aPrimaryTabParent); } \
  NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, int32_t cx, int32_t cy) override { return _to SizeShellTo(shell, cx, cy); } \
  NS_IMETHOD GetPrimaryContentSize(int32_t *width, int32_t *height) override { return _to GetPrimaryContentSize(width, height); } \
  NS_IMETHOD SetPrimaryContentSize(int32_t width, int32_t height) override { return _to SetPrimaryContentSize(width, height); } \
  NS_IMETHOD GetRootShellSize(int32_t *width, int32_t *height) override { return _to GetRootShellSize(width, height); } \
  NS_IMETHOD SetRootShellSize(int32_t width, int32_t height) override { return _to SetRootShellSize(width, height); } \
  NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode) override { return _to SetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
  NS_IMETHOD GetPersistence(bool *aPersistPosition, bool *aPersistSize, bool *aPersistSizeMode) override { return _to GetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
  NS_IMETHOD GetTabCount(uint32_t *aTabCount) override { return _to GetTabCount(aTabCount); } \
  NS_IMETHOD GetHasPrimaryContent(bool *aHasPrimaryContent) override { return _to GetHasPrimaryContent(aHasPrimaryContent); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOCSHELLTREEOWNER(_to) \
  NS_IMETHOD ContentShellAdded(nsIDocShellTreeItem *aContentShell, bool aPrimary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentShellAdded(aContentShell, aPrimary); } \
  NS_IMETHOD ContentShellRemoved(nsIDocShellTreeItem *aContentShell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentShellRemoved(aContentShell); } \
  NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem **aPrimaryContentShell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryContentShell(aPrimaryContentShell); } \
  NS_IMETHOD TabParentAdded(nsITabParent *aTab, bool aPrimary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TabParentAdded(aTab, aPrimary); } \
  NS_IMETHOD TabParentRemoved(nsITabParent *aTab) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TabParentRemoved(aTab); } \
  NS_IMETHOD GetPrimaryTabParent(nsITabParent **aPrimaryTabParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryTabParent(aPrimaryTabParent); } \
  NS_IMETHOD SizeShellTo(nsIDocShellTreeItem *shell, int32_t cx, int32_t cy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SizeShellTo(shell, cx, cy); } \
  NS_IMETHOD GetPrimaryContentSize(int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryContentSize(width, height); } \
  NS_IMETHOD SetPrimaryContentSize(int32_t width, int32_t height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrimaryContentSize(width, height); } \
  NS_IMETHOD GetRootShellSize(int32_t *width, int32_t *height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootShellSize(width, height); } \
  NS_IMETHOD SetRootShellSize(int32_t width, int32_t height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRootShellSize(width, height); } \
  NS_IMETHOD SetPersistence(bool aPersistPosition, bool aPersistSize, bool aPersistSizeMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
  NS_IMETHOD GetPersistence(bool *aPersistPosition, bool *aPersistSize, bool *aPersistSizeMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersistence(aPersistPosition, aPersistSize, aPersistSizeMode); } \
  NS_IMETHOD GetTabCount(uint32_t *aTabCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabCount(aTabCount); } \
  NS_IMETHOD GetHasPrimaryContent(bool *aHasPrimaryContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasPrimaryContent(aHasPrimaryContent); } 


#endif /* __gen_nsIDocShellTreeOwner_h__ */