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

Unified Diff: cc/test/layer_tree_test.cc

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/test/layer_tree_test.h ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index 2681b434a8df9f4e7c3923a48dd3d7afb20f8c8d..c9927be8bc71ad16ebdaa7c3c584606a4a1a4c38 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -282,9 +282,12 @@ class LayerTreeHostClientForTesting : public LayerTreeHostClient,
virtual void Layout() OVERRIDE { test_hooks_->Layout(); }
- virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
- float scale) OVERRIDE {
- test_hooks_->ApplyScrollAndScale(scroll_delta, scale);
+ virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
+ float scale,
+ float top_controls_delta) OVERRIDE {
+ test_hooks_->ApplyViewportDeltas(scroll_delta,
+ scale,
+ top_controls_delta);
}
virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback)
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698