gecko-dev/layout/base/PresState.ipdlh
Nika Layzell 952f6a915a Bug 1443954 - Part 3: Add support for RefCounted types to IPDL, r=bz,froydnj,baku
This patch was reviewed in parts, however the intermediate states would not build:

Bug 1443954 - Part 3A: Strip pointers from the argument to WriteParam and WriteIPDLParam before selecting the ParamTraits impl, r=froydnj

Bug 1443954 - Part 3B: Move nsIAlertNotification serialization to the refcounted system, r=bz

Bug 1443954 - Part 3C: Move geolocation serialization to the refcounted system, r=bz

Bug 1443954 - Part 3D: Move nsIInputStream serialization to the refcounted system, r=baku

Bug 1443954 - Part 3E: Move BlobImpl serialization to the refcounted system, r=baku

Bug 1443954 - Part 3F: Correctly implement ParamTraits for actors after the ParamTraits changes, r=froydnj
2018-04-10 17:49:48 -04:00

49 lines
1.2 KiB
C++

/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
using mozilla::void_t from "ipc/IPCMessageUtils.h";
using nsPoint from "mozilla/GfxMessageUtils.h";
using refcounted class mozilla::dom::BlobImpl from "mozilla/dom/IPCBlobUtils.h";
namespace mozilla {
struct SelectContentData {
uint32_t[] indices;
nsString[] values;
};
struct CheckedContentData {
bool checked;
};
union FileContentData {
BlobImpl;
nsString;
};
union PresContentData {
void_t;
nsString;
SelectContentData;
CheckedContentData;
// We can need to serialize blobs in order to transmit this type, so we need
// to handle that in a custom handler.
FileContentData[];
};
struct PresState {
PresContentData contentData;
nsPoint scrollState;
bool allowScrollOriginDowngrade;
float resolution;
bool scaleToResolution;
bool disabledSet;
bool disabled;
bool droppedDown;
};
} // namespace mozilla