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 #include "cc/ipc/compositor_frame_metadata_struct_traits.h" | 5 #include "cc/ipc/compositor_frame_metadata_struct_traits.h" |
6 #include "cc/ipc/selection_struct_traits.h" | 6 #include "cc/ipc/selection_struct_traits.h" |
7 #include "cc/ipc/surface_id_struct_traits.h" | 7 #include "cc/ipc/surface_id_struct_traits.h" |
8 #include "ui/events/mojo/latency_info_struct_traits.h" | 8 #include "ui/events/mojo/latency_info_struct_traits.h" |
9 #include "ui/gfx/mojo/selection_bound_struct_traits.h" | 9 #include "ui/gfx/mojo/selection_bound_struct_traits.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 out->page_scale_factor = data.page_scale_factor(); | 22 out->page_scale_factor = data.page_scale_factor(); |
23 if (!data.ReadScrollableViewportSize(&out->scrollable_viewport_size) || | 23 if (!data.ReadScrollableViewportSize(&out->scrollable_viewport_size) || |
24 !data.ReadRootLayerSize(&out->root_layer_size)) { | 24 !data.ReadRootLayerSize(&out->root_layer_size)) { |
25 return false; | 25 return false; |
26 } | 26 } |
27 | 27 |
28 out->min_page_scale_factor = data.min_page_scale_factor(); | 28 out->min_page_scale_factor = data.min_page_scale_factor(); |
29 out->max_page_scale_factor = data.max_page_scale_factor(); | 29 out->max_page_scale_factor = data.max_page_scale_factor(); |
30 out->root_overflow_x_hidden = data.root_overflow_x_hidden(); | 30 out->root_overflow_x_hidden = data.root_overflow_x_hidden(); |
31 out->root_overflow_y_hidden = data.root_overflow_y_hidden(); | 31 out->root_overflow_y_hidden = data.root_overflow_y_hidden(); |
32 if (!data.ReadLocationBarOffset(&out->location_bar_offset) || | 32 if (!data.ReadTopControlsHeight(&out->top_controls_height)) { |
33 !data.ReadLocationBarContentTranslation( | |
34 &out->location_bar_content_translation)) { | |
35 return false; | 33 return false; |
36 } | 34 } |
| 35 out->top_controls_shown_ratio = data.top_controls_shown_ratio(); |
| 36 if (!data.ReadBottomControlsHeight(&out->bottom_controls_height)) { |
| 37 return false; |
| 38 } |
| 39 out->bottom_controls_shown_ratio = data.bottom_controls_shown_ratio(); |
37 | 40 |
38 out->root_background_color = data.root_background_color(); | 41 out->root_background_color = data.root_background_color(); |
39 return data.ReadSelection(&out->selection) && | 42 return data.ReadSelection(&out->selection) && |
40 data.ReadLatencyInfo(&out->latency_info) && | 43 data.ReadLatencyInfo(&out->latency_info) && |
41 data.ReadSatisfiesSequences(&out->satisfies_sequences) && | 44 data.ReadSatisfiesSequences(&out->satisfies_sequences) && |
42 data.ReadReferencedSurfaces(&out->referenced_surfaces); | 45 data.ReadReferencedSurfaces(&out->referenced_surfaces); |
43 } | 46 } |
44 | 47 |
45 } // namespace mojo | 48 } // namespace mojo |
OLD | NEW |