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

Side by Side Diff: ui/android/delegated_frame_host_android.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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698