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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/render_widget_surface_properties.h
diff --git a/content/common/render_widget_surface_properties.h b/content/common/render_widget_surface_properties.h
new file mode 100644
index 0000000000000000000000000000000000000000..f5cef180f23e7491490dfe5c025a651c94b0d105
--- /dev/null
+++ b/content/common/render_widget_surface_properties.h
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_RENDER_WIDGET_SURFACE_PROPERTIES_H_
+#define CONTENT_COMMON_RENDER_WIDGET_SURFACE_PROPERTIES_H_
+
+#include "cc/output/compositor_frame.h"
+
+namespace content {
+
+struct RenderWidgetSurfaceProperties {
Fady Samuel 2017/05/15 20:29:02 nit: Class level description.
+ static RenderWidgetSurfaceProperties FromCompositorFrame(
+ const cc::CompositorFrame& frame);
+
+ bool operator==(const RenderWidgetSurfaceProperties& other) const;
+ bool operator!=(const RenderWidgetSurfaceProperties& other) const;
+
+ gfx::Size frame_size;
+ float device_scale_factor = 0;
+#ifdef OS_ANDROID
+ float top_controls_height = 0;
+ float top_controls_shown_ratio = 0;
+ float bottom_controls_height = 0;
+ float bottom_controls_shown_ratio = 0;
+ cc::Selection<gfx::SelectionBound> selection;
+ bool has_transparent_background = false;
+#endif
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_RENDER_WIDGET_SURFACE_PROPERTIES_H_
« 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