| OLD | NEW |
| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 scoped_refptr<cc::Layer>()); | 193 scoped_refptr<cc::Layer>()); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void WebLayerTreeViewImplForTesting::registerSelection( | 196 void WebLayerTreeViewImplForTesting::registerSelection( |
| 197 const blink::WebSelection& selection) { | 197 const blink::WebSelection& selection) { |
| 198 } | 198 } |
| 199 | 199 |
| 200 void WebLayerTreeViewImplForTesting::clearSelection() { | 200 void WebLayerTreeViewImplForTesting::clearSelection() { |
| 201 } | 201 } |
| 202 | 202 |
| 203 void WebLayerTreeViewImplForTesting::setHaveWheelEventHandlers( | 203 void WebLayerTreeViewImplForTesting::setEventListenerProperties( |
| 204 bool have_event_handlers) { | 204 blink::WebEventListenerClass eventClass, |
| 205 layer_tree_host_->SetHaveWheelEventHandlers(have_event_handlers); | 205 blink::WebEventListenerProperties properties) { |
| 206 // Equality of static_cast is checked in render_widget_compositor.cc. |
| 207 layer_tree_host_->SetEventListenerProperties( |
| 208 static_cast<cc::EventListenerClass>(eventClass), |
| 209 static_cast<cc::EventListenerProperties>(properties)); |
| 206 } | 210 } |
| 207 | 211 |
| 208 bool WebLayerTreeViewImplForTesting::haveWheelEventHandlers() const { | 212 blink::WebEventListenerProperties |
| 209 return layer_tree_host_->have_wheel_event_handlers(); | 213 WebLayerTreeViewImplForTesting::eventListenerProperties( |
| 214 blink::WebEventListenerClass event_class) const { |
| 215 // Equality of static_cast is checked in render_widget_compositor.cc. |
| 216 return static_cast<blink::WebEventListenerProperties>( |
| 217 layer_tree_host_->event_listener_properties( |
| 218 static_cast<cc::EventListenerClass>(event_class))); |
| 210 } | 219 } |
| 211 | 220 |
| 212 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( | 221 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( |
| 213 bool have_event_handlers) { | 222 bool have_event_handlers) { |
| 214 layer_tree_host_->SetHaveScrollEventHandlers(have_event_handlers); | 223 layer_tree_host_->SetHaveScrollEventHandlers(have_event_handlers); |
| 215 } | 224 } |
| 216 | 225 |
| 217 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { | 226 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { |
| 218 return layer_tree_host_->have_scroll_event_handlers(); | 227 return layer_tree_host_->have_scroll_event_handlers(); |
| 219 } | 228 } |
| 220 | 229 |
| 221 } // namespace content | 230 } // namespace content |
| OLD | NEW |