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

Unified Diff: content/test/web_layer_tree_view_impl_for_testing.cc

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Fix nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/web_layer_tree_view_impl_for_testing.cc
diff --git a/content/test/web_layer_tree_view_impl_for_testing.cc b/content/test/web_layer_tree_view_impl_for_testing.cc
index 929cde2a516ab6ce1f72d4e0ad954c3376e464c0..343dc67d0571a12de27111938bc37dd9e9984fb1 100644
--- a/content/test/web_layer_tree_view_impl_for_testing.cc
+++ b/content/test/web_layer_tree_view_impl_for_testing.cc
@@ -200,13 +200,22 @@ void WebLayerTreeViewImplForTesting::registerSelection(
void WebLayerTreeViewImplForTesting::clearSelection() {
}
-void WebLayerTreeViewImplForTesting::setHaveWheelEventHandlers(
- bool have_event_handlers) {
- layer_tree_host_->SetHaveWheelEventHandlers(have_event_handlers);
-}
-
-bool WebLayerTreeViewImplForTesting::haveWheelEventHandlers() const {
- return layer_tree_host_->have_wheel_event_handlers();
+void WebLayerTreeViewImplForTesting::setEventListenerProperties(
+ blink::WebEventListenerClass eventClass,
+ blink::WebEventListenerProperties properties) {
+ // Equality of static_cast is checked in render_widget_compositor.cc.
+ layer_tree_host_->SetEventListenerProperties(
+ static_cast<cc::EventListenerClass>(eventClass),
+ static_cast<cc::EventListenerProperties>(properties));
+}
+
+blink::WebEventListenerProperties
+WebLayerTreeViewImplForTesting::eventListenerProperties(
+ blink::WebEventListenerClass event_class) const {
+ // Equality of static_cast is checked in render_widget_compositor.cc.
+ return static_cast<blink::WebEventListenerProperties>(
+ layer_tree_host_->event_listener_properties(
+ static_cast<cc::EventListenerClass>(event_class)));
}
void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers(
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698