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