OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_RENDER_WIDGET_SURFACE_PROPERTIES_H_ | |
6 #define CONTENT_COMMON_RENDER_WIDGET_SURFACE_PROPERTIES_H_ | |
7 | |
8 #include "cc/output/compositor_frame.h" | |
9 | |
10 namespace content { | |
11 | |
12 struct RenderWidgetSurfaceProperties { | |
Fady Samuel
2017/05/15 20:29:02
nit: Class level description.
| |
13 static RenderWidgetSurfaceProperties FromCompositorFrame( | |
14 const cc::CompositorFrame& frame); | |
15 | |
16 bool operator==(const RenderWidgetSurfaceProperties& other) const; | |
17 bool operator!=(const RenderWidgetSurfaceProperties& other) const; | |
18 | |
19 gfx::Size frame_size; | |
20 float device_scale_factor = 0; | |
21 #ifdef OS_ANDROID | |
22 float top_controls_height = 0; | |
23 float top_controls_shown_ratio = 0; | |
24 float bottom_controls_height = 0; | |
25 float bottom_controls_shown_ratio = 0; | |
26 cc::Selection<gfx::SelectionBound> selection; | |
27 bool has_transparent_background = false; | |
28 #endif | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_COMMON_RENDER_WIDGET_SURFACE_PROPERTIES_H_ | |
OLD | NEW |