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

Unified Diff: cc/proto/layer_sticky_position_constraint.proto

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master and add comments to WebLayerStickyPositionConstraint members. Created 4 years, 3 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/BUILD.gn ('k') | cc/proto/property_tree.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/layer_sticky_position_constraint.proto
diff --git a/cc/proto/layer_sticky_position_constraint.proto b/cc/proto/layer_sticky_position_constraint.proto
new file mode 100644
index 0000000000000000000000000000000000000000..97d8fea1cc92506eb2dedc33128e59a00efb7d9c
--- /dev/null
+++ b/cc/proto/layer_sticky_position_constraint.proto
@@ -0,0 +1,28 @@
+// Copyright 2015 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 "rect.proto";
+import "transform.proto";
+
+option optimize_for = LITE_RUNTIME;
+
+package cc.proto;
+
+message LayerStickyPositionConstraint {
+ optional bool is_sticky = 1;
+ optional bool is_anchored_left = 2;
+ optional bool is_anchored_right = 3;
+ optional bool is_anchored_top = 4;
+ optional bool is_anchored_bottom = 5;
+
+ optional float left_offset = 6;
+ optional float right_offset = 7;
+ optional float top_offset = 8;
+ optional float bottom_offset = 9;
+
+ optional Rect scroll_container_relative_sticky_box_rect = 10;
+ optional Rect scroll_container_relative_containing_block_rect = 11;
+};
« no previous file with comments | « cc/proto/BUILD.gn ('k') | cc/proto/property_tree.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698