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 #ifndef UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 5 #ifndef UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 ReturnResourcesCallback return_resources_callback_; | 80 ReturnResourcesCallback return_resources_callback_; |
81 | 81 |
82 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 82 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
83 | 83 |
84 struct FrameData { | 84 struct FrameData { |
85 FrameData(); | 85 FrameData(); |
86 ~FrameData(); | 86 ~FrameData(); |
87 | 87 |
88 cc::SurfaceId surface_id; | 88 cc::SurfaceId surface_id; |
89 gfx::Size surface_size; | 89 gfx::Size surface_size; |
90 gfx::Vector2dF location_bar_content_translation; | 90 float top_controls_height; |
| 91 float top_controls_shown_ratio; |
| 92 float bottom_controls_height; |
| 93 float bottom_controls_shown_ratio; |
91 cc::Selection<gfx::SelectionBound> viewport_selection; | 94 cc::Selection<gfx::SelectionBound> viewport_selection; |
92 }; | 95 }; |
93 std::unique_ptr<FrameData> current_frame_; | 96 std::unique_ptr<FrameData> current_frame_; |
94 | 97 |
95 scoped_refptr<cc::SurfaceLayer> content_layer_; | 98 scoped_refptr<cc::SurfaceLayer> content_layer_; |
96 | 99 |
97 scoped_refptr<cc::Layer> background_layer_; | 100 scoped_refptr<cc::Layer> background_layer_; |
98 | 101 |
99 gfx::Size container_size_in_dip_; | 102 gfx::Size container_size_in_dip_; |
100 | 103 |
101 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); | 104 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); |
102 }; | 105 }; |
103 | 106 |
104 } // namespace ui | 107 } // namespace ui |
105 | 108 |
106 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 109 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
OLD | NEW |