Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef WinFileDialogCommandsDefn_h
#define WinFileDialogCommandsDefn_h
#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"
// Headers for typedefs
#include "mozilla/ipc/IPDLStructMember.h"
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetOptions|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetOptions final
{
private:
typedef ::uint32_t uint32_t;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetOptions() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetOptions(const uint32_t& _options) :
options_(_options)
{
}
MOZ_IMPLICIT SetOptions(uint32_t&& _options) :
options_(std::move(_options))
{
}
uint32_t&
options()
{
return options_;
}
const uint32_t&
options() const
{
return options_;
}
private:
::mozilla::ipc::IPDLStructMember<uint32_t> options_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetOptions>
{
typedef ::mozilla::widget::filedialog::SetOptions paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetTitle|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetTitle final
{
private:
typedef ::nsString nsString;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetTitle() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetTitle(const nsString& _title) :
title_(_title)
{
}
MOZ_IMPLICIT SetTitle(nsString&& _title) :
title_(std::move(_title))
{
}
nsString&
title()
{
return title_;
}
const nsString&
title() const
{
return title_;
}
private:
::mozilla::ipc::IPDLStructMember<nsString> title_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetTitle>
{
typedef ::mozilla::widget::filedialog::SetTitle paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetOkButtonLabel|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetOkButtonLabel final
{
private:
typedef ::nsString nsString;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetOkButtonLabel() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetOkButtonLabel(const nsString& _label) :
label_(_label)
{
}
MOZ_IMPLICIT SetOkButtonLabel(nsString&& _label) :
label_(std::move(_label))
{
}
nsString&
label()
{
return label_;
}
const nsString&
label() const
{
return label_;
}
private:
::mozilla::ipc::IPDLStructMember<nsString> label_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetOkButtonLabel>
{
typedef ::mozilla::widget::filedialog::SetOkButtonLabel paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetFolder|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetFolder final
{
private:
typedef ::nsString nsString;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetFolder() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetFolder(const nsString& _path) :
path_(_path)
{
}
MOZ_IMPLICIT SetFolder(nsString&& _path) :
path_(std::move(_path))
{
}
nsString&
path()
{
return path_;
}
const nsString&
path() const
{
return path_;
}
private:
::mozilla::ipc::IPDLStructMember<nsString> path_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetFolder>
{
typedef ::mozilla::widget::filedialog::SetFolder paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetFileName|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetFileName final
{
private:
typedef ::nsString nsString;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetFileName() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetFileName(const nsString& _filename) :
filename_(_filename)
{
}
MOZ_IMPLICIT SetFileName(nsString&& _filename) :
filename_(std::move(_filename))
{
}
nsString&
filename()
{
return filename_;
}
const nsString&
filename() const
{
return filename_;
}
private:
::mozilla::ipc::IPDLStructMember<nsString> filename_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetFileName>
{
typedef ::mozilla::widget::filedialog::SetFileName paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetDefaultExtension|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetDefaultExtension final
{
private:
typedef ::nsString nsString;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetDefaultExtension() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetDefaultExtension(const nsString& _extension) :
extension_(_extension)
{
}
MOZ_IMPLICIT SetDefaultExtension(nsString&& _extension) :
extension_(std::move(_extension))
{
}
nsString&
extension()
{
return extension_;
}
const nsString&
extension() const
{
return extension_;
}
private:
::mozilla::ipc::IPDLStructMember<nsString> extension_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetDefaultExtension>
{
typedef ::mozilla::widget::filedialog::SetDefaultExtension paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct ComDlgFilterSpec|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class ComDlgFilterSpec final
{
private:
typedef ::nsString nsString;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
ComDlgFilterSpec() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT ComDlgFilterSpec(
const nsString& _name,
const nsString& _spec) :
name_(_name),
spec_(_spec)
{
}
MOZ_IMPLICIT ComDlgFilterSpec(
nsString&& _name,
nsString&& _spec) :
name_(std::move(_name)),
spec_(std::move(_spec))
{
}
nsString&
name()
{
return name_;
}
const nsString&
name() const
{
return name_;
}
nsString&
spec()
{
return spec_;
}
const nsString&
spec() const
{
return spec_;
}
private:
::mozilla::ipc::IPDLStructMember<nsString> name_;
::mozilla::ipc::IPDLStructMember<nsString> spec_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::ComDlgFilterSpec>
{
typedef ::mozilla::widget::filedialog::ComDlgFilterSpec paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetFileTypes|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetFileTypes final
{
private:
typedef ::mozilla::widget::filedialog::ComDlgFilterSpec ComDlgFilterSpec;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetFileTypes() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetFileTypes(const nsTArray<ComDlgFilterSpec>& _filterList) :
filterList_(_filterList)
{
}
MOZ_IMPLICIT SetFileTypes(nsTArray<ComDlgFilterSpec>&& _filterList) :
filterList_(std::move(_filterList))
{
}
nsTArray<ComDlgFilterSpec>&
filterList()
{
return filterList_;
}
const nsTArray<ComDlgFilterSpec>&
filterList() const
{
return filterList_;
}
private:
::mozilla::ipc::IPDLStructMember<CopyableTArray<ComDlgFilterSpec>> filterList_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetFileTypes>
{
typedef ::mozilla::widget::filedialog::SetFileTypes paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SetFileTypeIndex|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class SetFileTypeIndex final
{
private:
typedef ::uint32_t uint32_t;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SetFileTypeIndex() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SetFileTypeIndex(const uint32_t& _index) :
index_(_index)
{
}
MOZ_IMPLICIT SetFileTypeIndex(uint32_t&& _index) :
index_(std::move(_index))
{
}
uint32_t&
index()
{
return index_;
}
const uint32_t&
index() const
{
return index_;
}
private:
::mozilla::ipc::IPDLStructMember<uint32_t> index_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::SetFileTypeIndex>
{
typedef ::mozilla::widget::filedialog::SetFileTypeIndex paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |union Command|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class Command final
{
public:
enum Type {
T__None,
TSetOptions = 1,
TSetTitle,
TSetOkButtonLabel,
TSetFolder,
TSetFileName,
TSetDefaultExtension,
TSetFileTypes,
TSetFileTypeIndex,
T__Last = TSetFileTypeIndex
};
private:
typedef ::mozilla::widget::filedialog::SetOptions SetOptions;
typedef ::mozilla::widget::filedialog::SetTitle SetTitle;
typedef ::mozilla::widget::filedialog::SetOkButtonLabel SetOkButtonLabel;
typedef ::mozilla::widget::filedialog::SetFolder SetFolder;
typedef ::mozilla::widget::filedialog::SetFileName SetFileName;
typedef ::mozilla::widget::filedialog::SetDefaultExtension SetDefaultExtension;
typedef ::mozilla::widget::filedialog::SetFileTypes SetFileTypes;
typedef ::mozilla::widget::filedialog::SetFileTypeIndex SetFileTypeIndex;
typedef SetOptions SetOptions__tdef;
typedef SetTitle SetTitle__tdef;
typedef SetOkButtonLabel SetOkButtonLabel__tdef;
typedef SetFolder SetFolder__tdef;
typedef SetFileName SetFileName__tdef;
typedef SetDefaultExtension SetDefaultExtension__tdef;
typedef SetFileTypes SetFileTypes__tdef;
typedef SetFileTypeIndex SetFileTypeIndex__tdef;
SetOptions*
ptr_SetOptions()
{
return (&(mVSetOptions));
}
const SetOptions*
constptr_SetOptions() const
{
return (&(mVSetOptions));
}
SetTitle*
ptr_SetTitle()
{
return (&(mVSetTitle));
}
const SetTitle*
constptr_SetTitle() const
{
return (&(mVSetTitle));
}
SetOkButtonLabel*
ptr_SetOkButtonLabel()
{
return (&(mVSetOkButtonLabel));
}
const SetOkButtonLabel*
constptr_SetOkButtonLabel() const
{
return (&(mVSetOkButtonLabel));
}
SetFolder*
ptr_SetFolder()
{
return (&(mVSetFolder));
}
const SetFolder*
constptr_SetFolder() const
{
return (&(mVSetFolder));
}
SetFileName*
ptr_SetFileName()
{
return (&(mVSetFileName));
}
const SetFileName*
constptr_SetFileName() const
{
return (&(mVSetFileName));
}
SetDefaultExtension*
ptr_SetDefaultExtension()
{
return (&(mVSetDefaultExtension));
}
const SetDefaultExtension*
constptr_SetDefaultExtension() const
{
return (&(mVSetDefaultExtension));
}
SetFileTypes*
ptr_SetFileTypes()
{
return (&(mVSetFileTypes));
}
const SetFileTypes*
constptr_SetFileTypes() const
{
return (&(mVSetFileTypes));
}
SetFileTypeIndex*
ptr_SetFileTypeIndex()
{
return (&(mVSetFileTypeIndex));
}
const SetFileTypeIndex*
constptr_SetFileTypeIndex() const
{
return (&(mVSetFileTypeIndex));
}
void
MaybeDestroy();
void
AssertSanity() const
{
MOZ_RELEASE_ASSERT((T__None) <= (mType), "invalid type tag");
MOZ_RELEASE_ASSERT((mType) <= (T__Last), "invalid type tag");
}
void
AssertSanity(Type aType) const
{
AssertSanity();
MOZ_RELEASE_ASSERT((mType) == (aType), "unexpected type tag");
}
public:
MOZ_IMPLICIT Command() :
mType(T__None)
{
}
MOZ_IMPLICIT Command(const SetOptions& aOther);
MOZ_IMPLICIT Command(SetOptions&& aOther);
MOZ_IMPLICIT Command(const SetTitle& aOther);
MOZ_IMPLICIT Command(SetTitle&& aOther);
MOZ_IMPLICIT Command(const SetOkButtonLabel& aOther);
MOZ_IMPLICIT Command(SetOkButtonLabel&& aOther);
MOZ_IMPLICIT Command(const SetFolder& aOther);
MOZ_IMPLICIT Command(SetFolder&& aOther);
MOZ_IMPLICIT Command(const SetFileName& aOther);
MOZ_IMPLICIT Command(SetFileName&& aOther);
MOZ_IMPLICIT Command(const SetDefaultExtension& aOther);
MOZ_IMPLICIT Command(SetDefaultExtension&& aOther);
MOZ_IMPLICIT Command(const SetFileTypes& aOther);
MOZ_IMPLICIT Command(SetFileTypes&& aOther);
MOZ_IMPLICIT Command(const SetFileTypeIndex& aOther);
MOZ_IMPLICIT Command(SetFileTypeIndex&& aOther);
MOZ_IMPLICIT Command(const Command& aOther);
MOZ_IMPLICIT Command(Command&& aOther);
~Command();
Type
type() const
{
return mType;
}
Command&
operator=(const SetOptions& aRhs);
Command&
operator=(SetOptions&& aRhs);
Command&
operator=(const SetTitle& aRhs);
Command&
operator=(SetTitle&& aRhs);
Command&
operator=(const SetOkButtonLabel& aRhs);
Command&
operator=(SetOkButtonLabel&& aRhs);
Command&
operator=(const SetFolder& aRhs);
Command&
operator=(SetFolder&& aRhs);
Command&
operator=(const SetFileName& aRhs);
Command&
operator=(SetFileName&& aRhs);
Command&
operator=(const SetDefaultExtension& aRhs);
Command&
operator=(SetDefaultExtension&& aRhs);
Command&
operator=(const SetFileTypes& aRhs);
Command&
operator=(SetFileTypes&& aRhs);
Command&
operator=(const SetFileTypeIndex& aRhs);
Command&
operator=(SetFileTypeIndex&& aRhs);
Command&
operator=(const Command& aRhs);
Command&
operator=(Command&& aRhs);
SetOptions&
get_SetOptions()
{
AssertSanity(TSetOptions);
return (*(ptr_SetOptions()));
}
const SetOptions&
get_SetOptions() const
{
AssertSanity(TSetOptions);
return (*(constptr_SetOptions()));
}
operator SetOptions&()
{
return get_SetOptions();
}
operator const SetOptions&() const
{
return get_SetOptions();
}
SetTitle&
get_SetTitle()
{
AssertSanity(TSetTitle);
return (*(ptr_SetTitle()));
}
const SetTitle&
get_SetTitle() const
{
AssertSanity(TSetTitle);
return (*(constptr_SetTitle()));
}
operator SetTitle&()
{
return get_SetTitle();
}
operator const SetTitle&() const
{
return get_SetTitle();
}
SetOkButtonLabel&
get_SetOkButtonLabel()
{
AssertSanity(TSetOkButtonLabel);
return (*(ptr_SetOkButtonLabel()));
}
const SetOkButtonLabel&
get_SetOkButtonLabel() const
{
AssertSanity(TSetOkButtonLabel);
return (*(constptr_SetOkButtonLabel()));
}
operator SetOkButtonLabel&()
{
return get_SetOkButtonLabel();
}
operator const SetOkButtonLabel&() const
{
return get_SetOkButtonLabel();
}
SetFolder&
get_SetFolder()
{
AssertSanity(TSetFolder);
return (*(ptr_SetFolder()));
}
const SetFolder&
get_SetFolder() const
{
AssertSanity(TSetFolder);
return (*(constptr_SetFolder()));
}
operator SetFolder&()
{
return get_SetFolder();
}
operator const SetFolder&() const
{
return get_SetFolder();
}
SetFileName&
get_SetFileName()
{
AssertSanity(TSetFileName);
return (*(ptr_SetFileName()));
}
const SetFileName&
get_SetFileName() const
{
AssertSanity(TSetFileName);
return (*(constptr_SetFileName()));
}
operator SetFileName&()
{
return get_SetFileName();
}
operator const SetFileName&() const
{
return get_SetFileName();
}
SetDefaultExtension&
get_SetDefaultExtension()
{
AssertSanity(TSetDefaultExtension);
return (*(ptr_SetDefaultExtension()));
}
const SetDefaultExtension&
get_SetDefaultExtension() const
{
AssertSanity(TSetDefaultExtension);
return (*(constptr_SetDefaultExtension()));
}
operator SetDefaultExtension&()
{
return get_SetDefaultExtension();
}
operator const SetDefaultExtension&() const
{
return get_SetDefaultExtension();
}
SetFileTypes&
get_SetFileTypes()
{
AssertSanity(TSetFileTypes);
return (*(ptr_SetFileTypes()));
}
const SetFileTypes&
get_SetFileTypes() const
{
AssertSanity(TSetFileTypes);
return (*(constptr_SetFileTypes()));
}
operator SetFileTypes&()
{
return get_SetFileTypes();
}
operator const SetFileTypes&() const
{
return get_SetFileTypes();
}
SetFileTypeIndex&
get_SetFileTypeIndex()
{
AssertSanity(TSetFileTypeIndex);
return (*(ptr_SetFileTypeIndex()));
}
const SetFileTypeIndex&
get_SetFileTypeIndex() const
{
AssertSanity(TSetFileTypeIndex);
return (*(constptr_SetFileTypeIndex()));
}
operator SetFileTypeIndex&()
{
return get_SetFileTypeIndex();
}
operator const SetFileTypeIndex&() const
{
return get_SetFileTypeIndex();
}
private:
union {
SetOptions mVSetOptions;
SetTitle mVSetTitle;
SetOkButtonLabel mVSetOkButtonLabel;
SetFolder mVSetFolder;
SetFileName mVSetFileName;
SetDefaultExtension mVSetDefaultExtension;
SetFileTypes mVSetFileTypes;
SetFileTypeIndex mVSetFileTypeIndex;
};
Type mType;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::Command>
{
typedef ::mozilla::widget::filedialog::Command paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct Results|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class Results final
{
private:
typedef ::nsString nsString;
typedef ::uint32_t uint32_t;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
Results() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT Results(
const nsTArray<nsString>& _paths,
const uint32_t& _selectedFileTypeIndex) :
paths_(_paths),
selectedFileTypeIndex_(_selectedFileTypeIndex)
{
}
MOZ_IMPLICIT Results(
nsTArray<nsString>&& _paths,
uint32_t&& _selectedFileTypeIndex) :
paths_(std::move(_paths)),
selectedFileTypeIndex_(std::move(_selectedFileTypeIndex))
{
}
nsTArray<nsString>&
paths()
{
return paths_;
}
const nsTArray<nsString>&
paths() const
{
return paths_;
}
uint32_t&
selectedFileTypeIndex()
{
return selectedFileTypeIndex_;
}
const uint32_t&
selectedFileTypeIndex() const
{
return selectedFileTypeIndex_;
}
private:
::mozilla::ipc::IPDLStructMember<CopyableTArray<nsString>> paths_;
::mozilla::ipc::IPDLStructMember<uint32_t> selectedFileTypeIndex_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::Results>
{
typedef ::mozilla::widget::filedialog::Results paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct RemoteError|
//
namespace mozilla {
namespace widget {
namespace filedialog {
class RemoteError final
{
private:
typedef ::uint32_t uint32_t;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
RemoteError() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT RemoteError(
const uint32_t& _where,
const uint32_t& _why) :
where_(_where),
why_(_why)
{
}
MOZ_IMPLICIT RemoteError(
uint32_t&& _where,
uint32_t&& _why) :
where_(std::move(_where)),
why_(std::move(_why))
{
}
uint32_t&
where()
{
return where_;
}
const uint32_t&
where() const
{
return where_;
}
uint32_t&
why()
{
return why_;
}
const uint32_t&
why() const
{
return why_;
}
private:
void
StaticAssertions() const;
::mozilla::ipc::IPDLStructMember<uint32_t> where_;
::mozilla::ipc::IPDLStructMember<uint32_t> why_;
};
} // namespace filedialog
} // namespace widget
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::widget::filedialog::RemoteError>
{
typedef ::mozilla::widget::filedialog::RemoteError paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef WinFileDialogCommandsDefn_h