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

#ifndef __gen_nsILayoutHistoryState_h__
#define __gen_nsILayoutHistoryState_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
#include "nsStringFwd.h"
#include "mozilla/UniquePtr.h"
namespace mozilla {
class PresState;
} // namespace mozilla
template<typename> struct already_AddRefed;

/* starting interface:    nsILayoutHistoryState */
#define NS_ILAYOUTHISTORYSTATE_IID_STR "aef27cb3-4df9-4eeb-b0b0-ac56cf861d04"

#define NS_ILAYOUTHISTORYSTATE_IID \
  {0xaef27cb3, 0x4df9, 0x4eeb, \
    { 0xb0, 0xb0, 0xac, 0x56, 0xcf, 0x86, 0x1d, 0x04 }}

class NS_NO_VTABLE nsILayoutHistoryState : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILAYOUTHISTORYSTATE_IID)

  /* readonly attribute boolean hasStates; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHasStates(bool *aHasStates) = 0;

  /* void getKeys ([optional] out uint32_t aCount, [array, size_is (aCount), retval] out string aKeys); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKeys(uint32_t *aCount, char * **aKeys) = 0;

  /* void getPresState (in ACString aKey, out float aScrollX, out float aScrollY, out boolean aAllowScrollOriginDowngrade, out float aRes, out boolean aScaleToRes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPresState(const nsACString& aKey, float *aScrollX, float *aScrollY, bool *aAllowScrollOriginDowngrade, float *aRes, bool *aScaleToRes) = 0;

  /* void addNewPresState (in ACString aKey, in float aScrollX, in float aScrollY, in boolean aAllowScrollOriginDowngrade, in float aRes, in boolean aScaleToRes); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddNewPresState(const nsACString& aKey, float aScrollX, float aScrollY, bool aAllowScrollOriginDowngrade, float aRes, bool aScaleToRes) = 0;

  /* [noscript,nostdcall,notxpcom] void AddState (in nsCString aKey, in PresStateUnique aState); */
  virtual void AddState(const nsCString & aKey, mozilla::UniquePtr<mozilla::PresState> aState) = 0;

  /* [noscript,nostdcall,notxpcom] PresStatePtr GetState (in nsCString aKey); */
  virtual mozilla::PresState * GetState(const nsCString & aKey) = 0;

  /* [noscript,nostdcall,notxpcom] void RemoveState (in nsCString aKey); */
  virtual void RemoveState(const nsCString & aKey) = 0;

  /* [noscript,nostdcall,notxpcom] boolean HasStates (); */
  virtual bool HasStates(void) = 0;

  /* [noscript,nostdcall,notxpcom] void SetScrollPositionOnly (in constBool aFlag); */
  virtual void SetScrollPositionOnly(const bool aFlag) = 0;

  /* [noscript,nostdcall,notxpcom] void ResetScrollState (); */
  virtual void ResetScrollState(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILayoutHistoryState, NS_ILAYOUTHISTORYSTATE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILAYOUTHISTORYSTATE \
  NS_IMETHOD GetHasStates(bool *aHasStates) override; \
  NS_IMETHOD GetKeys(uint32_t *aCount, char * **aKeys) override; \
  NS_IMETHOD GetPresState(const nsACString& aKey, float *aScrollX, float *aScrollY, bool *aAllowScrollOriginDowngrade, float *aRes, bool *aScaleToRes) override; \
  NS_IMETHOD AddNewPresState(const nsACString& aKey, float aScrollX, float aScrollY, bool aAllowScrollOriginDowngrade, float aRes, bool aScaleToRes) override; \
  virtual void AddState(const nsCString & aKey, mozilla::UniquePtr<mozilla::PresState> aState) override; \
  virtual mozilla::PresState * GetState(const nsCString & aKey) override; \
  virtual void RemoveState(const nsCString & aKey) override; \
  virtual bool HasStates(void) override; \
  virtual void SetScrollPositionOnly(const bool aFlag) override; \
  virtual void ResetScrollState(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_NSILAYOUTHISTORYSTATE \
  nsresult GetHasStates(bool *aHasStates); \
  nsresult GetKeys(uint32_t *aCount, char * **aKeys); \
  nsresult GetPresState(const nsACString& aKey, float *aScrollX, float *aScrollY, bool *aAllowScrollOriginDowngrade, float *aRes, bool *aScaleToRes); \
  nsresult AddNewPresState(const nsACString& aKey, float aScrollX, float aScrollY, bool aAllowScrollOriginDowngrade, float aRes, bool aScaleToRes); \
  void AddState(const nsCString & aKey, mozilla::UniquePtr<mozilla::PresState> aState); \
  mozilla::PresState * GetState(const nsCString & aKey); \
  void RemoveState(const nsCString & aKey); \
  bool HasStates(void); \
  void SetScrollPositionOnly(const bool aFlag); \
  void ResetScrollState(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILAYOUTHISTORYSTATE(_to) \
  NS_IMETHOD GetHasStates(bool *aHasStates) override { return _to GetHasStates(aHasStates); } \
  NS_IMETHOD GetKeys(uint32_t *aCount, char * **aKeys) override { return _to GetKeys(aCount, aKeys); } \
  NS_IMETHOD GetPresState(const nsACString& aKey, float *aScrollX, float *aScrollY, bool *aAllowScrollOriginDowngrade, float *aRes, bool *aScaleToRes) override { return _to GetPresState(aKey, aScrollX, aScrollY, aAllowScrollOriginDowngrade, aRes, aScaleToRes); } \
  NS_IMETHOD AddNewPresState(const nsACString& aKey, float aScrollX, float aScrollY, bool aAllowScrollOriginDowngrade, float aRes, bool aScaleToRes) override { return _to AddNewPresState(aKey, aScrollX, aScrollY, aAllowScrollOriginDowngrade, aRes, aScaleToRes); } \
  virtual void AddState(const nsCString & aKey, mozilla::UniquePtr<mozilla::PresState> aState) override { return _to AddState(aKey, aState); } \
  virtual mozilla::PresState * GetState(const nsCString & aKey) override { return _to GetState(aKey); } \
  virtual void RemoveState(const nsCString & aKey) override { return _to RemoveState(aKey); } \
  virtual bool HasStates(void) override { return _to HasStates(); } \
  virtual void SetScrollPositionOnly(const bool aFlag) override { return _to SetScrollPositionOnly(aFlag); } \
  virtual void ResetScrollState(void) override { return _to ResetScrollState(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILAYOUTHISTORYSTATE(_to) \
  NS_IMETHOD GetHasStates(bool *aHasStates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasStates(aHasStates); } \
  NS_IMETHOD GetKeys(uint32_t *aCount, char * **aKeys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeys(aCount, aKeys); } \
  NS_IMETHOD GetPresState(const nsACString& aKey, float *aScrollX, float *aScrollY, bool *aAllowScrollOriginDowngrade, float *aRes, bool *aScaleToRes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPresState(aKey, aScrollX, aScrollY, aAllowScrollOriginDowngrade, aRes, aScaleToRes); } \
  NS_IMETHOD AddNewPresState(const nsACString& aKey, float aScrollX, float aScrollY, bool aAllowScrollOriginDowngrade, float aRes, bool aScaleToRes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNewPresState(aKey, aScrollX, aScrollY, aAllowScrollOriginDowngrade, aRes, aScaleToRes); } \
  virtual void AddState(const nsCString & aKey, mozilla::UniquePtr<mozilla::PresState> aState) override; \
  virtual mozilla::PresState * GetState(const nsCString & aKey) override; \
  virtual void RemoveState(const nsCString & aKey) override; \
  virtual bool HasStates(void) override; \
  virtual void SetScrollPositionOnly(const bool aFlag) override; \
  virtual void ResetScrollState(void) override; 

/* Defined in nsLayoutHistoryState.cpp */
already_AddRefed<nsILayoutHistoryState>
NS_NewLayoutHistoryState();
namespace mozilla {
mozilla::UniquePtr<mozilla::PresState> NewPresState();
} // namespace mozilla

#endif /* __gen_nsILayoutHistoryState_h__ */