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

nsIPartialSHistory

Macros

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 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPartialSHistory.idl
 */

#ifndef __gen_nsIPartialSHistory_h__
#define __gen_nsIPartialSHistory_h__


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

#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIGroupedSHistory; /* forward declaration */

class nsIFrameLoader; /* forward declaration */


/* starting interface:    nsIPartialSHistory */
#define NS_IPARTIALSHISTORY_IID_STR "5cd75e28-838c-4a0a-972e-6005f736ef7a"

#define NS_IPARTIALSHISTORY_IID \
  {0x5cd75e28, 0x838c, 0x4a0a, \
    { 0x97, 0x2e, 0x60, 0x05, 0xf7, 0x36, 0xef, 0x7a }}

class NS_NO_VTABLE nsIPartialSHistory : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPARTIALSHISTORY_IID)

  /* [infallible] readonly attribute unsigned long count; */
  NS_IMETHOD GetCount(uint32_t *aCount) = 0;
  inline uint32_t GetCount()
  {
    uint32_t result;
    mozilla::DebugOnly<nsresult> rv = GetCount(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }

  /* [infallible] readonly attribute long globalIndex; */
  NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) = 0;
  inline int32_t GetGlobalIndex()
  {
    int32_t result;
    mozilla::DebugOnly<nsresult> rv = GetGlobalIndex(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }

  /* [infallible] readonly attribute unsigned long globalIndexOffset; */
  NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) = 0;
  inline uint32_t GetGlobalIndexOffset()
  {
    uint32_t result;
    mozilla::DebugOnly<nsresult> rv = GetGlobalIndexOffset(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }

  /* readonly attribute nsIFrameLoader ownerFrameLoader; */
  NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) = 0;

  /* readonly attribute nsIGroupedSHistory groupedSHistory; */
  NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) = 0;

  enum {
    STATE_INACTIVE = 0,
    STATE_ACTIVE = 1,
    STATE_PRERENDER = 2
  };

  /* [infallible] attribute long activeState; */
  NS_IMETHOD GetActiveState(int32_t *aActiveState) = 0;
  inline int32_t GetActiveState()
  {
    int32_t result;
    mozilla::DebugOnly<nsresult> rv = GetActiveState(&result);
    MOZ_ASSERT(NS_SUCCEEDED(rv));
    return result;
  }
  NS_IMETHOD SetActiveState(int32_t aActiveState) = 0;

  /* void onAttachGroupedSHistory (in nsIGroupedSHistory aGroup, in unsigned long aOffset); */
  NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) = 0;

  /* void handleSHistoryUpdate (in unsigned long aCount, in unsigned long aLocalIndex, in boolean aTruncate); */
  NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) = 0;

  /* void onActive (in unsigned long aGlobalLength, in unsigned long aTargetLocalIndex); */
  NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) = 0;

  /* void onDeactive (); */
  NS_IMETHOD OnDeactive(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPartialSHistory, NS_IPARTIALSHISTORY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPARTIALSHISTORY \
  using nsIPartialSHistory::GetCount; \
  NS_IMETHOD GetCount(uint32_t *aCount) override; \
  using nsIPartialSHistory::GetGlobalIndex; \
  NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override; \
  using nsIPartialSHistory::GetGlobalIndexOffset; \
  NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) override; \
  NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) override; \
  NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) override; \
  using nsIPartialSHistory::GetActiveState; \
  NS_IMETHOD GetActiveState(int32_t *aActiveState) override; \
  NS_IMETHOD SetActiveState(int32_t aActiveState) override; \
  NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) override; \
  NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) override; \
  NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) override; \
  NS_IMETHOD OnDeactive(void) 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_NSIPARTIALSHISTORY \
  using nsIPartialSHistory::GetCount; \
  nsresult GetCount(uint32_t *aCount); \
  using nsIPartialSHistory::GetGlobalIndex; \
  nsresult GetGlobalIndex(int32_t *aGlobalIndex); \
  using nsIPartialSHistory::GetGlobalIndexOffset; \
  nsresult GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset); \
  nsresult GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader); \
  nsresult GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory); \
  using nsIPartialSHistory::GetActiveState; \
  nsresult GetActiveState(int32_t *aActiveState); \
  nsresult SetActiveState(int32_t aActiveState); \
  nsresult OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset); \
  nsresult HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate); \
  nsresult OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex); \
  nsresult OnDeactive(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPARTIALSHISTORY(_to) \
  using nsIPartialSHistory::GetCount; \
  NS_IMETHOD GetCount(uint32_t *aCount) override { return _to GetCount(aCount); } \
  using nsIPartialSHistory::GetGlobalIndex; \
  NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override { return _to GetGlobalIndex(aGlobalIndex); } \
  using nsIPartialSHistory::GetGlobalIndexOffset; \
  NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) override { return _to GetGlobalIndexOffset(aGlobalIndexOffset); } \
  NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) override { return _to GetOwnerFrameLoader(aOwnerFrameLoader); } \
  NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) override { return _to GetGroupedSHistory(aGroupedSHistory); } \
  using nsIPartialSHistory::GetActiveState; \
  NS_IMETHOD GetActiveState(int32_t *aActiveState) override { return _to GetActiveState(aActiveState); } \
  NS_IMETHOD SetActiveState(int32_t aActiveState) override { return _to SetActiveState(aActiveState); } \
  NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) override { return _to OnAttachGroupedSHistory(aGroup, aOffset); } \
  NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) override { return _to HandleSHistoryUpdate(aCount, aLocalIndex, aTruncate); } \
  NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) override { return _to OnActive(aGlobalLength, aTargetLocalIndex); } \
  NS_IMETHOD OnDeactive(void) override { return _to OnDeactive(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPARTIALSHISTORY(_to) \
  NS_IMETHOD GetCount(uint32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
  NS_IMETHOD GetGlobalIndex(int32_t *aGlobalIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalIndex(aGlobalIndex); } \
  NS_IMETHOD GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalIndexOffset(aGlobalIndexOffset); } \
  NS_IMETHOD GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerFrameLoader(aOwnerFrameLoader); } \
  NS_IMETHOD GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupedSHistory(aGroupedSHistory); } \
  NS_IMETHOD GetActiveState(int32_t *aActiveState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveState(aActiveState); } \
  NS_IMETHOD SetActiveState(int32_t aActiveState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveState(aActiveState); } \
  NS_IMETHOD OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAttachGroupedSHistory(aGroup, aOffset); } \
  NS_IMETHOD HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleSHistoryUpdate(aCount, aLocalIndex, aTruncate); } \
  NS_IMETHOD OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnActive(aGlobalLength, aTargetLocalIndex); } \
  NS_IMETHOD OnDeactive(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeactive(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPartialSHistory : public nsIPartialSHistory
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPARTIALSHISTORY

  nsPartialSHistory();

private:
  ~nsPartialSHistory();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPartialSHistory, nsIPartialSHistory)

nsPartialSHistory::nsPartialSHistory()
{
  /* member initializers and constructor code */
}

nsPartialSHistory::~nsPartialSHistory()
{
  /* destructor code */
}

/* [infallible] readonly attribute unsigned long count; */
NS_IMETHODIMP nsPartialSHistory::GetCount(uint32_t *aCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [infallible] readonly attribute long globalIndex; */
NS_IMETHODIMP nsPartialSHistory::GetGlobalIndex(int32_t *aGlobalIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [infallible] readonly attribute unsigned long globalIndexOffset; */
NS_IMETHODIMP nsPartialSHistory::GetGlobalIndexOffset(uint32_t *aGlobalIndexOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIFrameLoader ownerFrameLoader; */
NS_IMETHODIMP nsPartialSHistory::GetOwnerFrameLoader(nsIFrameLoader * *aOwnerFrameLoader)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIGroupedSHistory groupedSHistory; */
NS_IMETHODIMP nsPartialSHistory::GetGroupedSHistory(nsIGroupedSHistory * *aGroupedSHistory)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [infallible] attribute long activeState; */
NS_IMETHODIMP nsPartialSHistory::GetActiveState(int32_t *aActiveState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPartialSHistory::SetActiveState(int32_t aActiveState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onAttachGroupedSHistory (in nsIGroupedSHistory aGroup, in unsigned long aOffset); */
NS_IMETHODIMP nsPartialSHistory::OnAttachGroupedSHistory(nsIGroupedSHistory *aGroup, uint32_t aOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void handleSHistoryUpdate (in unsigned long aCount, in unsigned long aLocalIndex, in boolean aTruncate); */
NS_IMETHODIMP nsPartialSHistory::HandleSHistoryUpdate(uint32_t aCount, uint32_t aLocalIndex, bool aTruncate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onActive (in unsigned long aGlobalLength, in unsigned long aTargetLocalIndex); */
NS_IMETHODIMP nsPartialSHistory::OnActive(uint32_t aGlobalLength, uint32_t aTargetLocalIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDeactive (); */
NS_IMETHODIMP nsPartialSHistory::OnDeactive()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIPartialSHistory_h__ */