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

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

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: Rebase Created 4 years, 11 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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 return user_scrollable_horizontal_; 276 return user_scrollable_horizontal_;
277 } 277 }
278 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } 278 bool user_scrollable_vertical() const { return user_scrollable_vertical_; }
279 279
280 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); 280 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons);
281 void ClearMainThreadScrollingReasons(); 281 void ClearMainThreadScrollingReasons();
282 bool should_scroll_on_main_thread() const { 282 bool should_scroll_on_main_thread() const {
283 return !!main_thread_scrolling_reasons_; 283 return !!main_thread_scrolling_reasons_;
284 } 284 }
285 285
286 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers); 286 void SetTouchEventProperties(uint32_t touch_event_properties);
287 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } 287 uint32_t touch_event_properties() const { return touch_event_properties_; }
288
289 void SetWheelEventProperties(uint32_t wheel_event_properties);
290 uint32_t wheel_event_properties() const { return wheel_event_properties_; }
288 291
289 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); 292 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers);
290 bool have_scroll_event_handlers() const { 293 bool have_scroll_event_handlers() const {
291 return have_scroll_event_handlers_; 294 return have_scroll_event_handlers_;
292 } 295 }
293 296
294 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); 297 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region);
295 const Region& non_fast_scrollable_region() const { 298 const Region& non_fast_scrollable_region() const {
296 return non_fast_scrollable_region_; 299 return non_fast_scrollable_region_;
297 } 300 }
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 int num_descendants_that_draw_content_; 723 int num_descendants_that_draw_content_;
721 int transform_tree_index_; 724 int transform_tree_index_;
722 int effect_tree_index_; 725 int effect_tree_index_;
723 int clip_tree_index_; 726 int clip_tree_index_;
724 int property_tree_sequence_number_; 727 int property_tree_sequence_number_;
725 uint64_t element_id_; 728 uint64_t element_id_;
726 uint32_t mutable_properties_; 729 uint32_t mutable_properties_;
727 gfx::Vector2dF offset_to_transform_parent_; 730 gfx::Vector2dF offset_to_transform_parent_;
728 uint32_t main_thread_scrolling_reasons_; 731 uint32_t main_thread_scrolling_reasons_;
729 bool should_flatten_transform_from_property_tree_ : 1; 732 bool should_flatten_transform_from_property_tree_ : 1;
730 bool have_wheel_event_handlers_ : 1;
731 bool have_scroll_event_handlers_ : 1; 733 bool have_scroll_event_handlers_ : 1;
732 bool user_scrollable_horizontal_ : 1; 734 bool user_scrollable_horizontal_ : 1;
733 bool user_scrollable_vertical_ : 1; 735 bool user_scrollable_vertical_ : 1;
734 bool is_root_for_isolated_group_ : 1; 736 bool is_root_for_isolated_group_ : 1;
735 bool is_container_for_fixed_position_layers_ : 1; 737 bool is_container_for_fixed_position_layers_ : 1;
736 bool is_drawable_ : 1; 738 bool is_drawable_ : 1;
737 bool draws_content_ : 1; 739 bool draws_content_ : 1;
738 bool hide_layer_and_subtree_ : 1; 740 bool hide_layer_and_subtree_ : 1;
739 bool masks_to_bounds_ : 1; 741 bool masks_to_bounds_ : 1;
740 bool contents_opaque_ : 1; 742 bool contents_opaque_ : 1;
741 bool double_sided_ : 1; 743 bool double_sided_ : 1;
742 bool should_flatten_transform_ : 1; 744 bool should_flatten_transform_ : 1;
743 bool use_parent_backface_visibility_ : 1; 745 bool use_parent_backface_visibility_ : 1;
744 bool force_render_surface_ : 1; 746 bool force_render_surface_ : 1;
745 bool transform_is_invertible_ : 1; 747 bool transform_is_invertible_ : 1;
746 bool has_render_surface_ : 1; 748 bool has_render_surface_ : 1;
747 ScrollBlocksOn scroll_blocks_on_ : 3; 749 ScrollBlocksOn scroll_blocks_on_ : 3;
750 uint32_t touch_event_properties_;
751 uint32_t wheel_event_properties_;
748 Region non_fast_scrollable_region_; 752 Region non_fast_scrollable_region_;
749 Region touch_event_handler_region_; 753 Region touch_event_handler_region_;
750 gfx::PointF position_; 754 gfx::PointF position_;
751 SkColor background_color_; 755 SkColor background_color_;
752 float opacity_; 756 float opacity_;
753 SkXfermode::Mode blend_mode_; 757 SkXfermode::Mode blend_mode_;
754 // draw_blend_mode may be different than blend_mode_, 758 // draw_blend_mode may be different than blend_mode_,
755 // when a RenderSurface re-parents the layer's blend_mode. 759 // when a RenderSurface re-parents the layer's blend_mode.
756 SkXfermode::Mode draw_blend_mode_; 760 SkXfermode::Mode draw_blend_mode_;
757 FilterOperations filters_; 761 FilterOperations filters_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 std::vector<FrameTimingRequest> frame_timing_requests_; 797 std::vector<FrameTimingRequest> frame_timing_requests_;
794 bool frame_timing_requests_dirty_; 798 bool frame_timing_requests_dirty_;
795 bool is_hidden_from_property_trees_; 799 bool is_hidden_from_property_trees_;
796 800
797 DISALLOW_COPY_AND_ASSIGN(Layer); 801 DISALLOW_COPY_AND_ASSIGN(Layer);
798 }; 802 };
799 803
800 } // namespace cc 804 } // namespace cc
801 805
802 #endif // CC_LAYERS_LAYER_H_ 806 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698