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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 2718833002: Refactor unreliable hit test code to avoid owning_layers (Closed)
Patch Set: Fix bug when directly hitting a drawn scrollbar Created 3 years, 9 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_unittest.cc ('k') | cc/trees/layer_tree_impl.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 void UnregisterScrollbar(ScrollbarLayerImplBase* scrollbar_layer); 385 void UnregisterScrollbar(ScrollbarLayerImplBase* scrollbar_layer);
386 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const; 386 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const;
387 387
388 void RegisterScrollLayer(LayerImpl* layer); 388 void RegisterScrollLayer(LayerImpl* layer);
389 void UnregisterScrollLayer(LayerImpl* layer); 389 void UnregisterScrollLayer(LayerImpl* layer);
390 390
391 void AddSurfaceLayer(LayerImpl* layer); 391 void AddSurfaceLayer(LayerImpl* layer);
392 void RemoveSurfaceLayer(LayerImpl* layer); 392 void RemoveSurfaceLayer(LayerImpl* layer);
393 const LayerImplList& SurfaceLayers() const { return surface_layers_; } 393 const LayerImplList& SurfaceLayers() const { return surface_layers_; }
394 394
395 LayerImpl* FindFirstScrollingLayerOrScrollbarLayerThatIsHitByPoint( 395 LayerImpl* FindFirstScrollingLayerOrDrawnScrollbarThatIsHitByPoint(
396 const gfx::PointF& screen_space_point); 396 const gfx::PointF& screen_space_point);
397 397
398 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); 398 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point);
399 399
400 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 400 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
401 const gfx::PointF& screen_space_point); 401 const gfx::PointF& screen_space_point);
402 402
403 void RegisterSelection(const LayerSelection& selection); 403 void RegisterSelection(const LayerSelection& selection);
404 404
405 bool GetAndResetHandleVisibilityChanged(); 405 bool GetAndResetHandleVisibilityChanged();
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 562
563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
564 564
565 private: 565 private:
566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
567 }; 567 };
568 568
569 } // namespace cc 569 } // namespace cc
570 570
571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 571 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698