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

Unified Diff: cc/ipc/compositor_frame_metadata_struct_traits.h

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbug Created 4 years, 4 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 | « cc/ipc/compositor_frame_metadata.mojom ('k') | cc/ipc/compositor_frame_metadata_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/compositor_frame_metadata_struct_traits.h
diff --git a/cc/ipc/compositor_frame_metadata_struct_traits.h b/cc/ipc/compositor_frame_metadata_struct_traits.h
index 04daa5d0cf6430877a7509943f2ce95c11905d10..99a8892f4aa62d87f4f47f42577d8a009746199a 100644
--- a/cc/ipc/compositor_frame_metadata_struct_traits.h
+++ b/cc/ipc/compositor_frame_metadata_struct_traits.h
@@ -66,14 +66,24 @@ struct StructTraits<cc::mojom::CompositorFrameMetadata,
return metadata.is_resourceless_software_draw_with_scroll_or_animation;
}
- static gfx::Vector2dF location_bar_offset(
+ static float top_controls_height(
const cc::CompositorFrameMetadata& metadata) {
- return metadata.location_bar_offset;
+ return metadata.top_controls_height;
}
- static gfx::Vector2dF location_bar_content_translation(
+ static float top_controls_shown_ratio(
const cc::CompositorFrameMetadata& metadata) {
- return metadata.location_bar_content_translation;
+ return metadata.top_controls_shown_ratio;
+ }
+
+ static float bottom_controls_height(
+ const cc::CompositorFrameMetadata& metadata) {
+ return metadata.bottom_controls_height;
+ }
+
+ static float bottom_controls_shown_ratio(
+ const cc::CompositorFrameMetadata& metadata) {
+ return metadata.bottom_controls_shown_ratio;
}
static uint32_t root_background_color(
« no previous file with comments | « cc/ipc/compositor_frame_metadata.mojom ('k') | cc/ipc/compositor_frame_metadata_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698