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

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

Issue 585063002: Made double-tap zoom work in pinch virtual viewport mode (Chromium-side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another build fix Created 6 years, 2 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
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) { 133 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) {
134 layer_tree_host_->SetDeferCommits(defer_commits); 134 layer_tree_host_->SetDeferCommits(defer_commits);
135 } 135 }
136 136
137 void WebLayerTreeViewImplForTesting::Layout() { 137 void WebLayerTreeViewImplForTesting::Layout() {
138 } 138 }
139 139
140 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( 140 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas(
141 const gfx::Vector2d& inner_delta,
142 const gfx::Vector2d& outer_delta,
143 float page_scale,
144 float top_controls_delta) {}
145
146 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas(
141 const gfx::Vector2d& scroll_delta, 147 const gfx::Vector2d& scroll_delta,
142 float page_scale, 148 float page_scale,
143 float top_controls_delta) {} 149 float top_controls_delta) {}
144 150
145 scoped_ptr<cc::OutputSurface> 151 scoped_ptr<cc::OutputSurface>
146 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) { 152 WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) {
147 return make_scoped_ptr( 153 return make_scoped_ptr(
148 new cc::OutputSurface(cc::TestContextProvider::Create())); 154 new cc::OutputSurface(cc::TestContextProvider::Create()));
149 } 155 }
150 156
(...skipping 20 matching lines...) Expand all
171 177
172 void WebLayerTreeViewImplForTesting::registerSelection( 178 void WebLayerTreeViewImplForTesting::registerSelection(
173 const blink::WebSelectionBound& start, 179 const blink::WebSelectionBound& start,
174 const blink::WebSelectionBound& end) { 180 const blink::WebSelectionBound& end) {
175 } 181 }
176 182
177 void WebLayerTreeViewImplForTesting::clearSelection() { 183 void WebLayerTreeViewImplForTesting::clearSelection() {
178 } 184 }
179 185
180 } // namespace content 186 } // namespace content
OLDNEW
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | mojo/examples/compositor_app/compositor_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698