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

Side by Side Diff: content/test/web_layer_tree_view_impl_for_testing.cc

Issue 783373002: Add argument to pass elastic overscroll delta to Blink (Chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remote TODOs Created 6 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/test/web_layer_tree_view_impl_for_testing.h" 5 #include "content/test/web_layer_tree_view_impl_for_testing.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "cc/base/switches.h" 10 #include "cc/base/switches.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) { 140 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) {
141 layer_tree_host_->SetDeferCommits(defer_commits); 141 layer_tree_host_->SetDeferCommits(defer_commits);
142 } 142 }
143 143
144 void WebLayerTreeViewImplForTesting::Layout() { 144 void WebLayerTreeViewImplForTesting::Layout() {
145 } 145 }
146 146
147 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( 147 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas(
148 const gfx::Vector2d& inner_delta, 148 const gfx::Vector2d& inner_delta,
149 const gfx::Vector2d& outer_delta, 149 const gfx::Vector2d& outer_delta,
150 const gfx::Vector2dF& elastic_overscroll_delta,
150 float page_scale, 151 float page_scale,
151 float top_controls_delta) {} 152 float top_controls_delta) {
153 }
152 154
153 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( 155 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas(
154 const gfx::Vector2d& scroll_delta, 156 const gfx::Vector2d& scroll_delta,
155 float page_scale, 157 float page_scale,
156 float top_controls_delta) {} 158 float top_controls_delta) {}
157 159
158 void WebLayerTreeViewImplForTesting::RequestNewOutputSurface( 160 void WebLayerTreeViewImplForTesting::RequestNewOutputSurface(
159 bool fallback) { 161 bool fallback) {
160 bool flipped_output_surface = false; 162 bool flipped_output_surface = false;
161 layer_tree_host_->SetOutputSurface( 163 layer_tree_host_->SetOutputSurface(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 197
196 void WebLayerTreeViewImplForTesting::registerSelection( 198 void WebLayerTreeViewImplForTesting::registerSelection(
197 const blink::WebSelectionBound& start, 199 const blink::WebSelectionBound& start,
198 const blink::WebSelectionBound& end) { 200 const blink::WebSelectionBound& end) {
199 } 201 }
200 202
201 void WebLayerTreeViewImplForTesting::clearSelection() { 203 void WebLayerTreeViewImplForTesting::clearSelection() {
202 } 204 }
203 205
204 } // namespace content 206 } // namespace content
OLDNEW
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | mojo/services/html_viewer/weblayertreeview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698