Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1458)

Unified Diff: cc/proto/synced_property.proto

Issue 1736073002: cc: Move SyncedScrollOffset to scroll tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and add comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/proto/synced_property_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/synced_property.proto
diff --git a/cc/proto/synced_property.proto b/cc/proto/synced_property.proto
new file mode 100644
index 0000000000000000000000000000000000000000..5b8658f341125055a0bf0e2a8fd7cd4ad2e68f4e
--- /dev/null
+++ b/cc/proto/synced_property.proto
@@ -0,0 +1,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;
+}
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/proto/synced_property_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698