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

Side by Side Diff: content/common/render_widget_surface_properties.h

Issue 2882303002: Factor FrameData out of RendererCompositorFrameSink (Closed)
Patch Set: Remove duplicate line in build file Created 3 years, 7 months 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
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/common/content_param_traits_macros.h ('k') | content/common/render_widget_surface_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698