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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 511253003: Made Blink aware of top controls offset (Chromium-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash + mojo example build break Created 6 years, 3 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/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 3a1509f8cfdc829b65eee93bcf779c0be6d15cd3..64e20993ca10a46e7c92eb6d087680bb854c9d79 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -159,6 +159,8 @@ class CC_EXPORT LayerTreeHostImpl
ui::LatencyInfo* latency) OVERRIDE;
// TopControlsManagerClient implementation.
+ virtual void SetControlsTopOffset(float offset) OVERRIDE;
+ virtual float ControlsTopOffset() const OVERRIDE;
virtual void DidChangeTopControlsPosition() OVERRIDE;
virtual bool HaveRootScrollLayer() const OVERRIDE;
@@ -343,11 +345,6 @@ class CC_EXPORT LayerTreeHostImpl
void SetViewportSize(const gfx::Size& device_viewport_size);
gfx::Size device_viewport_size() const { return device_viewport_size_; }
- void SetTopControlsLayoutHeight(float top_controls_layout_height);
- float top_controls_layout_height() const {
- return top_controls_layout_height_;
- }
-
void SetOverhangUIResource(UIResourceId overhang_ui_resource_id,
const gfx::Size& overhang_ui_resource_size);
@@ -485,6 +482,8 @@ class CC_EXPORT LayerTreeHostImpl
void GetPictureLayerImplPairs(
std::vector<PictureLayerImpl::Pair>* layers) const;
+ void SetTopControlsLayoutHeight(float height);
+
protected:
LayerTreeHostImpl(
const LayerTreeSettings& settings,
@@ -664,9 +663,6 @@ class CC_EXPORT LayerTreeHostImpl
UIResourceId overhang_ui_resource_id_;
gfx::Size overhang_ui_resource_size_;
- // Height of the top controls as known by Blink.
- float top_controls_layout_height_;
-
// Optional top-level constraints that can be set by the OutputSurface.
// - external_transform_ applies a transform above the root layer
// - external_viewport_ is used DrawProperties, tile management and
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698