mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-08 14:03:49 +00:00
79fe5e1e56
Differential Revision: https://phabricator.services.mozilla.com/D15691 --HG-- extra : moz-landing-system : lando
50 lines
1.3 KiB
C++
50 lines
1.3 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;
|
|
// For frames where layout and visual viewport aren't one and the same thing,
|
|
// scrollState will store the position of the *visual* viewport.
|
|
nsPoint scrollState;
|
|
bool allowScrollOriginDowngrade;
|
|
float resolution;
|
|
bool disabledSet;
|
|
bool disabled;
|
|
bool droppedDown;
|
|
};
|
|
|
|
} // namespace mozilla
|