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

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

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase Created 4 years, 10 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 "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 void WebLayerTreeViewImplForTesting::setHaveWheelEventHandlers( 203 void WebLayerTreeViewImplForTesting::setHaveWheelEventHandlers(
204 bool have_event_handlers) { 204 bool have_event_handlers) {
205 layer_tree_host_->SetHaveWheelEventHandlers(have_event_handlers); 205 layer_tree_host_->SetHaveWheelEventHandlers(have_event_handlers);
206 } 206 }
207 207
208 bool WebLayerTreeViewImplForTesting::haveWheelEventHandlers() const { 208 bool WebLayerTreeViewImplForTesting::haveWheelEventHandlers() const {
209 return layer_tree_host_->have_wheel_event_handlers(); 209 return layer_tree_host_->have_wheel_event_handlers();
210 } 210 }
211 211
212 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers(
213 bool have_event_handlers) {
214 layer_tree_host_->SetHaveScrollEventHandlers(have_event_handlers);
215 }
216
217 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const {
218 return layer_tree_host_->have_scroll_event_handlers();
219 }
220
212 } // namespace content 221 } // namespace content
OLDNEW
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698