2018-03-02 21:17:09 +03:00
|
|
|
/* -*- 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";
|
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-03-07 04:14:59 +03:00
|
|
|
using refcounted class mozilla::dom::BlobImpl from "mozilla/dom/IPCBlobUtils.h";
|
2018-03-02 21:17:09 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
struct SelectContentData {
|
|
|
|
uint32_t[] indices;
|
|
|
|
nsString[] values;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CheckedContentData {
|
|
|
|
bool checked;
|
|
|
|
};
|
|
|
|
|
|
|
|
union FileContentData {
|
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-03-07 04:14:59 +03:00
|
|
|
BlobImpl;
|
2018-03-02 21:17:09 +03:00
|
|
|
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;
|
2019-01-11 22:50:24 +03:00
|
|
|
// For frames where layout and visual viewport aren't one and the same thing,
|
|
|
|
// scrollState will store the position of the *visual* viewport.
|
2018-03-02 21:17:09 +03:00
|
|
|
nsPoint scrollState;
|
|
|
|
bool allowScrollOriginDowngrade;
|
|
|
|
float resolution;
|
|
|
|
bool disabledSet;
|
|
|
|
bool disabled;
|
|
|
|
bool droppedDown;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|