summaryrefslogtreecommitdiffstats
path: root/cc/proto/synced_property.proto
blob: 5b8658f341125055a0bf0e2a8fd7cd4ad2e68f4e (plain)
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;
}