|
Normalize top controls offset to (0, 1), Chromium-side.
Since top controls height can now be changed, storing top controls
offset as an absolute value causes problems. Normalizing its format to
(0, 1) means we we don't need to adjust it when the height changes. It
also improves readability and means TopControlsManager will compute
correctly even when the height is currently 0.
This patch also switches top controls to use SyncedProperty.
See also Blink-side patch: https://codereview.chromium.org/882683003
BUG= 430635
Committed: https://crrev.com/6004fe0188ac900b02b843a9bff3ad8e569d616a
Cr-Commit-Position: refs/heads/master@{#315216}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+352 lines, -387 lines) |
Patch |
 |
M |
cc/input/top_controls_manager.h
|
View
|
1
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/input/top_controls_manager.cc
|
View
|
1
2
3
|
8 chunks |
+55 lines, -93 lines |
0 comments
|
Download
|
 |
M |
cc/input/top_controls_manager_client.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/input/top_controls_manager_unittest.cc
|
View
|
1
|
23 chunks |
+97 lines, -107 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.cc
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -15 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
1
2
3
4
|
7 chunks |
+22 lines, -32 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl_unittest.cc
|
View
|
1
2
3
4
|
25 chunks |
+75 lines, -69 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_impl.h
|
View
|
1
2
3
4
|
7 chunks |
+24 lines, -34 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_impl.cc
|
View
|
1
2
3
4
|
6 chunks |
+50 lines, -21 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/render_widget_compositor.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/render_widget_compositor.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 17 (7 generated)
|