OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 "vector2d.proto"; | 7 import "vector2d.proto"; |
8 import "vector2df.proto"; | 8 import "vector2df.proto"; |
9 | 9 |
10 option optimize_for = LITE_RUNTIME; | 10 option optimize_for = LITE_RUNTIME; |
11 | 11 |
12 package cc.proto; | 12 package cc.proto; |
13 | 13 |
14 message ScrollUpdateInfo { | 14 message ScrollUpdateInfo { |
15 optional int64 layer_id = 1; | 15 optional int64 layer_id = 1; |
16 optional Vector2d scroll_delta = 2; | 16 optional Vector2d scroll_delta = 2; |
17 } | 17 } |
18 | 18 |
| 19 message ScrollbarsUpdateInfo { |
| 20 optional int64 layer_id = 1; |
| 21 optional bool hidden = 2; |
| 22 } |
| 23 |
19 message ScrollAndScaleSet { | 24 message ScrollAndScaleSet { |
20 repeated ScrollUpdateInfo scrolls = 1; | 25 repeated ScrollUpdateInfo scrolls = 1; |
21 optional float page_scale_delta = 2; | 26 optional float page_scale_delta = 2; |
22 optional Vector2dF elastic_overscroll_delta = 3; | 27 optional Vector2dF elastic_overscroll_delta = 3; |
23 optional float top_controls_delta = 4; | 28 optional float top_controls_delta = 4; |
| 29 repeated ScrollbarsUpdateInfo scrollbars = 5; |
24 | 30 |
25 // TODO(khushalsagar): Do we need to send swap promises? | 31 // TODO(khushalsagar): Do we need to send swap promises? |
26 // See crbug/576999. | 32 // See crbug/576999. |
27 } | 33 } |
28 | 34 |
29 message BeginFrameArgs { | 35 message BeginFrameArgs { |
30 enum BeginFrameArgsType { | 36 enum BeginFrameArgsType { |
31 INVALID = 1; | 37 INVALID = 1; |
32 NORMAL = 2; | 38 NORMAL = 2; |
33 MISSED = 3; | 39 MISSED = 3; |
34 BEGIN_FRAME_ARGS_TYPE_MAX = 100; | 40 BEGIN_FRAME_ARGS_TYPE_MAX = 100; |
35 } | 41 } |
36 | 42 |
37 optional int64 frame_time = 1; | 43 optional int64 frame_time = 1; |
38 optional int64 deadline = 2; | 44 optional int64 deadline = 2; |
39 optional int64 interval = 3; | 45 optional int64 interval = 3; |
40 optional BeginFrameArgsType type = 4; | 46 optional BeginFrameArgsType type = 4; |
41 optional bool on_critical_path = 5; | 47 optional bool on_critical_path = 5; |
42 } | 48 } |
43 | 49 |
44 message BeginMainFrameAndCommitState { | 50 message BeginMainFrameAndCommitState { |
45 optional int64 begin_frame_id = 1; | 51 optional int64 begin_frame_id = 1; |
46 optional BeginFrameArgs begin_frame_args = 2; | 52 optional BeginFrameArgs begin_frame_args = 2; |
47 optional ScrollAndScaleSet scroll_info = 3; | 53 optional ScrollAndScaleSet scroll_info = 3; |
48 optional int64 memory_allocation_limit_bytes = 4; | 54 optional int64 memory_allocation_limit_bytes = 4; |
49 optional bool evicted_ui_resources = 5; | 55 optional bool evicted_ui_resources = 5; |
50 } | 56 } |
OLD | NEW |