OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "cc/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 if ((scrolling_layer_impl == InnerViewportScrollLayer() && | 565 if ((scrolling_layer_impl == InnerViewportScrollLayer() && |
566 test_layer_impl == OuterViewportScrollLayer()) || | 566 test_layer_impl == OuterViewportScrollLayer()) || |
567 (scrolling_layer_impl == OuterViewportScrollLayer() && | 567 (scrolling_layer_impl == OuterViewportScrollLayer() && |
568 test_layer_impl == InnerViewportScrollLayer())) { | 568 test_layer_impl == InnerViewportScrollLayer())) { |
569 return true; | 569 return true; |
570 } | 570 } |
571 | 571 |
572 return false; | 572 return false; |
573 } | 573 } |
574 | 574 |
575 bool LayerTreeHostImpl::HaveWheelEventHandlers() const { | 575 EventListenerProperties LayerTreeHostImpl::GetEventListenerProperties( |
576 return active_tree_->have_wheel_event_handlers(); | 576 EventListenerClass event_class) const { |
| 577 return active_tree_->event_listener_properties(event_class); |
577 } | 578 } |
578 | 579 |
579 bool LayerTreeHostImpl::DoTouchEventsBlockScrollAt( | 580 bool LayerTreeHostImpl::DoTouchEventsBlockScrollAt( |
580 const gfx::Point& viewport_point) { | 581 const gfx::Point& viewport_point) { |
581 gfx::PointF device_viewport_point = gfx::ScalePoint( | 582 gfx::PointF device_viewport_point = gfx::ScalePoint( |
582 gfx::PointF(viewport_point), active_tree_->device_scale_factor()); | 583 gfx::PointF(viewport_point), active_tree_->device_scale_factor()); |
583 | 584 |
584 // Now determine if there are actually any handlers at that point. | 585 // Now determine if there are actually any handlers at that point. |
585 // TODO(rbyers): Consider also honoring touch-action (crbug.com/347272). | 586 // TODO(rbyers): Consider also honoring touch-action (crbug.com/347272). |
586 LayerImpl* layer_impl = | 587 LayerImpl* layer_impl = |
(...skipping 3286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3873 return task_runner_provider_->HasImplThread(); | 3874 return task_runner_provider_->HasImplThread(); |
3874 } | 3875 } |
3875 | 3876 |
3876 bool LayerTreeHostImpl::CommitToActiveTree() const { | 3877 bool LayerTreeHostImpl::CommitToActiveTree() const { |
3877 // In single threaded mode we skip the pending tree and commit directly to the | 3878 // In single threaded mode we skip the pending tree and commit directly to the |
3878 // active tree. | 3879 // active tree. |
3879 return !task_runner_provider_->HasImplThread(); | 3880 return !task_runner_provider_->HasImplThread(); |
3880 } | 3881 } |
3881 | 3882 |
3882 } // namespace cc | 3883 } // namespace cc |
OLD | NEW |