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

Side by Side Diff: cc/proto/begin_main_frame_and_commit_state.proto

Issue 2453553003: Disable overlay scrollbars in Blink when hidden by the compositor. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698