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

Side by Side Diff: cc/trees/layer_tree_host_impl.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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698