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 uint32_t LayerTreeHostImpl::EventListenerProperties( |
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 static LayerImpl* NextLayerInScrollOrder(LayerImpl* layer) { | 580 static LayerImpl* NextLayerInScrollOrder(LayerImpl* layer) { |
580 if (layer->scroll_parent()) | 581 if (layer->scroll_parent()) |
581 return layer->scroll_parent(); | 582 return layer->scroll_parent(); |
582 | 583 |
583 return layer->parent(); | 584 return layer->parent(); |
584 } | 585 } |
585 | 586 |
586 bool LayerTreeHostImpl::DoTouchEventsBlockScrollAt( | 587 bool LayerTreeHostImpl::DoTouchEventsBlockScrollAt( |
(...skipping 3302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3889 return task_runner_provider_->HasImplThread(); | 3890 return task_runner_provider_->HasImplThread(); |
3890 } | 3891 } |
3891 | 3892 |
3892 bool LayerTreeHostImpl::CommitToActiveTree() const { | 3893 bool LayerTreeHostImpl::CommitToActiveTree() const { |
3893 // In single threaded mode we skip the pending tree and commit directly to the | 3894 // In single threaded mode we skip the pending tree and commit directly to the |
3894 // active tree. | 3895 // active tree. |
3895 return !task_runner_provider_->HasImplThread(); | 3896 return !task_runner_provider_->HasImplThread(); |
3896 } | 3897 } |
3897 | 3898 |
3898 } // namespace cc | 3899 } // namespace cc |
OLD | NEW |