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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.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/trees/layer_tree_host_unittest_no_message_loop.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index 05e210917f1530a7d5f65a75e81c2c4441a962cc..3489a0e79c6cae92f6d562efd0d09ab6062785f4 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -86,8 +86,9 @@ class LayerTreeHostScrollTestScrollSimple : public LayerTreeHostScrollTest {
}
}
- virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
- float scale) OVERRIDE {
+ virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
+ float scale,
+ float top_controls_delta) OVERRIDE {
num_scrolls_++;
}
@@ -170,8 +171,9 @@ class LayerTreeHostScrollTestScrollMultipleRedraw
}
}
- virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
- float scale) OVERRIDE {
+ virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
+ float scale,
+ float top_controls_delta) OVERRIDE {
num_scrolls_++;
}
@@ -342,8 +344,9 @@ class LayerTreeHostScrollTestScrollAbortedCommit
}
}
- virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
- float scale) OVERRIDE {
+ virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
+ float scale,
+ float top_controls_delta) OVERRIDE {
num_impl_scrolls_++;
}
@@ -513,8 +516,9 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
final_scroll_offset_ = expected_scroll_layer_->scroll_offset();
}
- virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
- float scale) OVERRIDE {
+ virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
+ float scale,
+ float top_controls_delta) OVERRIDE {
num_scrolls_++;
}
@@ -851,8 +855,9 @@ class ImplSidePaintingScrollTestSimple : public ImplSidePaintingScrollTest {
}
}
- virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
- float scale) OVERRIDE {
+ virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
+ float scale,
+ float top_controls_delta) OVERRIDE {
num_scrolls_++;
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_no_message_loop.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698