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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase 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/layers/layer.cc ('k') | cc/layers/layer_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 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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 void ApplySentScrollDeltasFromAbortedCommit(); 496 void ApplySentScrollDeltasFromAbortedCommit();
497 497
498 void set_main_thread_scrolling_reasons( 498 void set_main_thread_scrolling_reasons(
499 uint32_t main_thread_scrolling_reasons) { 499 uint32_t main_thread_scrolling_reasons) {
500 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; 500 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons;
501 } 501 }
502 bool should_scroll_on_main_thread() const { 502 bool should_scroll_on_main_thread() const {
503 return !!main_thread_scrolling_reasons_; 503 return !!main_thread_scrolling_reasons_;
504 } 504 }
505 505
506 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers) {
507 have_scroll_event_handlers_ = have_scroll_event_handlers;
508 }
509 bool have_scroll_event_handlers() const {
510 return have_scroll_event_handlers_;
511 }
512
513 void SetNonFastScrollableRegion(const Region& region) { 506 void SetNonFastScrollableRegion(const Region& region) {
514 non_fast_scrollable_region_ = region; 507 non_fast_scrollable_region_ = region;
515 } 508 }
516 const Region& non_fast_scrollable_region() const { 509 const Region& non_fast_scrollable_region() const {
517 return non_fast_scrollable_region_; 510 return non_fast_scrollable_region_;
518 } 511 }
519 512
520 void SetTouchEventHandlerRegion(const Region& region) { 513 void SetTouchEventHandlerRegion(const Region& region) {
521 touch_event_handler_region_ = region; 514 touch_event_handler_region_ = region;
522 } 515 }
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 scoped_refptr<SyncedScrollOffset> scroll_offset_; 747 scoped_refptr<SyncedScrollOffset> scroll_offset_;
755 gfx::Vector2dF bounds_delta_; 748 gfx::Vector2dF bounds_delta_;
756 749
757 // Properties synchronized from the associated Layer. 750 // Properties synchronized from the associated Layer.
758 gfx::Point3F transform_origin_; 751 gfx::Point3F transform_origin_;
759 gfx::Size bounds_; 752 gfx::Size bounds_;
760 int scroll_clip_layer_id_; 753 int scroll_clip_layer_id_;
761 754
762 gfx::Vector2dF offset_to_transform_parent_; 755 gfx::Vector2dF offset_to_transform_parent_;
763 uint32_t main_thread_scrolling_reasons_; 756 uint32_t main_thread_scrolling_reasons_;
764 bool have_scroll_event_handlers_ : 1;
765 757
766 bool user_scrollable_horizontal_ : 1; 758 bool user_scrollable_horizontal_ : 1;
767 bool user_scrollable_vertical_ : 1; 759 bool user_scrollable_vertical_ : 1;
768 bool stacking_order_changed_ : 1; 760 bool stacking_order_changed_ : 1;
769 // Whether the "back" of this layer should draw. 761 // Whether the "back" of this layer should draw.
770 bool double_sided_ : 1; 762 bool double_sided_ : 1;
771 bool should_flatten_transform_ : 1; 763 bool should_flatten_transform_ : 1;
772 bool should_flatten_transform_from_property_tree_ : 1; 764 bool should_flatten_transform_from_property_tree_ : 1;
773 765
774 // Tracks if drawing-related properties have changed since last redraw. 766 // Tracks if drawing-related properties have changed since last redraw.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 // If true, the layer or one of its descendants has a touch handler. 870 // If true, the layer or one of its descendants has a touch handler.
879 bool layer_or_descendant_has_touch_handler_; 871 bool layer_or_descendant_has_touch_handler_;
880 bool sorted_for_recursion_; 872 bool sorted_for_recursion_;
881 873
882 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 874 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
883 }; 875 };
884 876
885 } // namespace cc 877 } // namespace cc
886 878
887 #endif // CC_LAYERS_LAYER_IMPL_H_ 879 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698