Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/sessionstore/nsISessionStoreRestoreData.idl
*/
#ifndef __gen_nsISessionStoreRestoreData_h__
#define __gen_nsISessionStoreRestoreData_h__
#include "nsISupports.h"
#include "nsTArray.h"
#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
/* starting interface: nsISessionStoreRestoreData */
#define NS_ISESSIONSTORERESTOREDATA_IID_STR "cd9f33c5-460d-4bbf-a459-f375ca9566d8"
#define NS_ISESSIONSTORERESTOREDATA_IID \
{0xcd9f33c5, 0x460d, 0x4bbf, \
{ 0xa4, 0x59, 0xf3, 0x75, 0xca, 0x95, 0x66, 0xd8 }}
class NS_NO_VTABLE nsISessionStoreRestoreData : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISESSIONSTORERESTOREDATA_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISessionStoreRestoreData;
/* attribute AUTF8String url; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUrl(nsACString& aUrl) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUrl(const nsACString& aUrl) = 0;
/* attribute AString innerHTML; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInnerHTML(nsAString& aInnerHTML) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetInnerHTML(const nsAString& aInnerHTML) = 0;
/* attribute ACString scroll; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScroll(nsACString& aScroll) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetScroll(const nsACString& aScroll) = 0;
/* void addTextField (in boolean aIsXPath, in AString aIdOrXPath, in AString aValue); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddTextField(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aValue) = 0;
/* void addCheckbox (in boolean aIsXPath, in AString aIdOrXPath, in boolean aValue); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddCheckbox(bool aIsXPath, const nsAString& aIdOrXPath, bool aValue) = 0;
/* void addFileList (in boolean aIsXPath, in AString aIdOrXPath, in AString aType, in Array<AString> aFileList); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddFileList(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aType, const nsTArray<nsString >& aFileList) = 0;
/* void addSingleSelect (in boolean aIsXPath, in AString aIdOrXPath, in unsigned long aSelectedIndex, in AString aValue); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddSingleSelect(bool aIsXPath, const nsAString& aIdOrXPath, uint32_t aSelectedIndex, const nsAString& aValue) = 0;
/* void addMultipleSelect (in boolean aIsXPath, in AString aIdOrXPath, in Array<AString> aValues); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddMultipleSelect(bool aIsXPath, const nsAString& aIdOrXPath, const nsTArray<nsString >& aValues) = 0;
/* void addCustomElement (in boolean aIsXPath, in AString aIdOrXPath, in jsval aValue, in jsval aState); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddCustomElement(bool aIsXPath, const nsAString& aIdOrXPath, JS::Handle<JS::Value> aValue, JS::Handle<JS::Value> aState) = 0;
/* void addChild (in nsISessionStoreRestoreData aChild, in unsigned long aIndex); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddChild(nsISessionStoreRestoreData *aChild, uint32_t aIndex) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISessionStoreRestoreData, NS_ISESSIONSTORERESTOREDATA_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISESSIONSTORERESTOREDATA \
NS_IMETHOD GetUrl(nsACString& aUrl) override; \
NS_IMETHOD SetUrl(const nsACString& aUrl) override; \
NS_IMETHOD GetInnerHTML(nsAString& aInnerHTML) override; \
NS_IMETHOD SetInnerHTML(const nsAString& aInnerHTML) override; \
NS_IMETHOD GetScroll(nsACString& aScroll) override; \
NS_IMETHOD SetScroll(const nsACString& aScroll) override; \
NS_IMETHOD AddTextField(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aValue) override; \
NS_IMETHOD AddCheckbox(bool aIsXPath, const nsAString& aIdOrXPath, bool aValue) override; \
NS_IMETHOD AddFileList(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aType, const nsTArray<nsString >& aFileList) override; \
NS_IMETHOD AddSingleSelect(bool aIsXPath, const nsAString& aIdOrXPath, uint32_t aSelectedIndex, const nsAString& aValue) override; \
NS_IMETHOD AddMultipleSelect(bool aIsXPath, const nsAString& aIdOrXPath, const nsTArray<nsString >& aValues) override; \
NS_IMETHOD AddCustomElement(bool aIsXPath, const nsAString& aIdOrXPath, JS::Handle<JS::Value> aValue, JS::Handle<JS::Value> aState) override; \
NS_IMETHOD AddChild(nsISessionStoreRestoreData *aChild, uint32_t aIndex) 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_NSISESSIONSTORERESTOREDATA \
nsresult GetUrl(nsACString& aUrl); \
nsresult SetUrl(const nsACString& aUrl); \
nsresult GetInnerHTML(nsAString& aInnerHTML); \
nsresult SetInnerHTML(const nsAString& aInnerHTML); \
nsresult GetScroll(nsACString& aScroll); \
nsresult SetScroll(const nsACString& aScroll); \
nsresult AddTextField(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aValue); \
nsresult AddCheckbox(bool aIsXPath, const nsAString& aIdOrXPath, bool aValue); \
nsresult AddFileList(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aType, const nsTArray<nsString >& aFileList); \
nsresult AddSingleSelect(bool aIsXPath, const nsAString& aIdOrXPath, uint32_t aSelectedIndex, const nsAString& aValue); \
nsresult AddMultipleSelect(bool aIsXPath, const nsAString& aIdOrXPath, const nsTArray<nsString >& aValues); \
nsresult AddCustomElement(bool aIsXPath, const nsAString& aIdOrXPath, JS::Handle<JS::Value> aValue, JS::Handle<JS::Value> aState); \
nsresult AddChild(nsISessionStoreRestoreData *aChild, uint32_t aIndex);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISESSIONSTORERESTOREDATA(_to) \
NS_IMETHOD GetUrl(nsACString& aUrl) override { return _to GetUrl(aUrl); } \
NS_IMETHOD SetUrl(const nsACString& aUrl) override { return _to SetUrl(aUrl); } \
NS_IMETHOD GetInnerHTML(nsAString& aInnerHTML) override { return _to GetInnerHTML(aInnerHTML); } \
NS_IMETHOD SetInnerHTML(const nsAString& aInnerHTML) override { return _to SetInnerHTML(aInnerHTML); } \
NS_IMETHOD GetScroll(nsACString& aScroll) override { return _to GetScroll(aScroll); } \
NS_IMETHOD SetScroll(const nsACString& aScroll) override { return _to SetScroll(aScroll); } \
NS_IMETHOD AddTextField(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aValue) override { return _to AddTextField(aIsXPath, aIdOrXPath, aValue); } \
NS_IMETHOD AddCheckbox(bool aIsXPath, const nsAString& aIdOrXPath, bool aValue) override { return _to AddCheckbox(aIsXPath, aIdOrXPath, aValue); } \
NS_IMETHOD AddFileList(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aType, const nsTArray<nsString >& aFileList) override { return _to AddFileList(aIsXPath, aIdOrXPath, aType, aFileList); } \
NS_IMETHOD AddSingleSelect(bool aIsXPath, const nsAString& aIdOrXPath, uint32_t aSelectedIndex, const nsAString& aValue) override { return _to AddSingleSelect(aIsXPath, aIdOrXPath, aSelectedIndex, aValue); } \
NS_IMETHOD AddMultipleSelect(bool aIsXPath, const nsAString& aIdOrXPath, const nsTArray<nsString >& aValues) override { return _to AddMultipleSelect(aIsXPath, aIdOrXPath, aValues); } \
NS_IMETHOD AddCustomElement(bool aIsXPath, const nsAString& aIdOrXPath, JS::Handle<JS::Value> aValue, JS::Handle<JS::Value> aState) override { return _to AddCustomElement(aIsXPath, aIdOrXPath, aValue, aState); } \
NS_IMETHOD AddChild(nsISessionStoreRestoreData *aChild, uint32_t aIndex) override { return _to AddChild(aChild, aIndex); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISESSIONSTORERESTOREDATA(_to) \
NS_IMETHOD GetUrl(nsACString& aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
NS_IMETHOD SetUrl(const nsACString& aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUrl(aUrl); } \
NS_IMETHOD GetInnerHTML(nsAString& aInnerHTML) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerHTML(aInnerHTML); } \
NS_IMETHOD SetInnerHTML(const nsAString& aInnerHTML) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInnerHTML(aInnerHTML); } \
NS_IMETHOD GetScroll(nsACString& aScroll) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScroll(aScroll); } \
NS_IMETHOD SetScroll(const nsACString& aScroll) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScroll(aScroll); } \
NS_IMETHOD AddTextField(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddTextField(aIsXPath, aIdOrXPath, aValue); } \
NS_IMETHOD AddCheckbox(bool aIsXPath, const nsAString& aIdOrXPath, bool aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCheckbox(aIsXPath, aIdOrXPath, aValue); } \
NS_IMETHOD AddFileList(bool aIsXPath, const nsAString& aIdOrXPath, const nsAString& aType, const nsTArray<nsString >& aFileList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFileList(aIsXPath, aIdOrXPath, aType, aFileList); } \
NS_IMETHOD AddSingleSelect(bool aIsXPath, const nsAString& aIdOrXPath, uint32_t aSelectedIndex, const nsAString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSingleSelect(aIsXPath, aIdOrXPath, aSelectedIndex, aValue); } \
NS_IMETHOD AddMultipleSelect(bool aIsXPath, const nsAString& aIdOrXPath, const nsTArray<nsString >& aValues) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMultipleSelect(aIsXPath, aIdOrXPath, aValues); } \
NS_IMETHOD AddCustomElement(bool aIsXPath, const nsAString& aIdOrXPath, JS::Handle<JS::Value> aValue, JS::Handle<JS::Value> aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCustomElement(aIsXPath, aIdOrXPath, aValue, aState); } \
NS_IMETHOD AddChild(nsISessionStoreRestoreData *aChild, uint32_t aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChild(aChild, aIndex); }
#endif /* __gen_nsISessionStoreRestoreData_h__ */