| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 import "point.proto"; |
| 7 import "rect.proto"; | 8 import "rect.proto"; |
| 8 import "transform.proto"; | 9 import "transform.proto"; |
| 9 | 10 |
| 10 option optimize_for = LITE_RUNTIME; | 11 option optimize_for = LITE_RUNTIME; |
| 11 | 12 |
| 12 package cc.proto; | 13 package cc.proto; |
| 13 | 14 |
| 14 message LayerStickyPositionConstraint { | 15 message LayerStickyPositionConstraint { |
| 15 optional bool is_sticky = 1; | 16 optional bool is_sticky = 1; |
| 16 optional bool is_anchored_left = 2; | 17 optional bool is_anchored_left = 2; |
| 17 optional bool is_anchored_right = 3; | 18 optional bool is_anchored_right = 3; |
| 18 optional bool is_anchored_top = 4; | 19 optional bool is_anchored_top = 4; |
| 19 optional bool is_anchored_bottom = 5; | 20 optional bool is_anchored_bottom = 5; |
| 20 | 21 |
| 21 optional float left_offset = 6; | 22 optional float left_offset = 6; |
| 22 optional float right_offset = 7; | 23 optional float right_offset = 7; |
| 23 optional float top_offset = 8; | 24 optional float top_offset = 8; |
| 24 optional float bottom_offset = 9; | 25 optional float bottom_offset = 9; |
| 25 | 26 |
| 27 optional Point parent_relative_sticky_box_offset = 12; |
| 26 optional Rect scroll_container_relative_sticky_box_rect = 10; | 28 optional Rect scroll_container_relative_sticky_box_rect = 10; |
| 27 optional Rect scroll_container_relative_containing_block_rect = 11; | 29 optional Rect scroll_container_relative_containing_block_rect = 11; |
| 28 }; | 30 }; |
| OLD | NEW |