forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynced_property.proto
29 lines (22 loc) · 941 Bytes
/
synced_property.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
import "scroll_offset.proto";
option optimize_for = LITE_RUNTIME;
package cc.proto;
// Since plumbing SyncedScrollOffset is only used by PropertyTree, and can only
// travel from main thread to impl thread one way, the From/To protobuf function
// for SyncedProperty only needs to care the current base, because main thread
// does not have pending/active tree or scroll offset deltas.
message ScrollOffsetGroup {
optional ScrollOffset pending_base = 1;
optional ScrollOffset pending_delta = 2;
optional ScrollOffset active_base = 3;
optional ScrollOffset active_delta = 4;
optional ScrollOffset sent_delta = 5;
}
message SyncedProperty {
optional bool clobber_active_value = 1;
optional ScrollOffsetGroup scroll_offset_group = 1001;
}