1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file declares data structures used to communicate data logged by
9 * various components for the purpose of APZ testing (see bug 961289 and
10 * gfx/layers/apz/test/APZTestData.h) to JS test code.
13 // A single key-value pair in the data.
14 dictionary ScrollFrameDataEntry {
19 // All the key-value pairs associated with a given scrollable frame.
20 // The scrollable frame is identified by a scroll id.
21 dictionary ScrollFrameData {
22 unsigned long long scrollId;
23 sequence<ScrollFrameDataEntry> entries;
26 // All the scrollable frames associated with a given paint or repaint request.
27 // The paint or repaint request is identified by a sequence number.
28 dictionary APZBucket {
29 unsigned long sequenceNumber;
30 sequence<ScrollFrameData> scrollFrames;
33 // All the paints and repaint requests. This is the top-level data structure.
34 dictionary APZTestData {
35 sequence<APZBucket> paints;
36 sequence<APZBucket> repaintRequests;