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

Side by Side Diff: cc/trees/layer_tree_host.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 against scroll blocks on 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
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_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 scoped_refptr<Layer> outer_viewport_scroll_layer); 200 scoped_refptr<Layer> outer_viewport_scroll_layer);
201 Layer* inner_viewport_scroll_layer() const { 201 Layer* inner_viewport_scroll_layer() const {
202 return inner_viewport_scroll_layer_.get(); 202 return inner_viewport_scroll_layer_.get();
203 } 203 }
204 Layer* outer_viewport_scroll_layer() const { 204 Layer* outer_viewport_scroll_layer() const {
205 return outer_viewport_scroll_layer_.get(); 205 return outer_viewport_scroll_layer_.get();
206 } 206 }
207 207
208 void RegisterSelection(const LayerSelection& selection); 208 void RegisterSelection(const LayerSelection& selection);
209 209
210 bool have_scroll_event_handlers() const {
211 return have_scroll_event_handlers_;
212 }
213 void SetHaveScrollEventHandlers(bool have_event_handlers);
214
210 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } 215 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; }
211 void SetHaveWheelEventHandlers(bool have_event_handlers); 216 void SetHaveWheelEventHandlers(bool have_event_handlers);
212 217
213 const LayerTreeSettings& settings() const { return settings_; } 218 const LayerTreeSettings& settings() const { return settings_; }
214 219
215 void SetDebugState(const LayerTreeDebugState& debug_state); 220 void SetDebugState(const LayerTreeDebugState& debug_state);
216 const LayerTreeDebugState& debug_state() const { return debug_state_; } 221 const LayerTreeDebugState& debug_state() const { return debug_state_; }
217 222
218 bool has_gpu_rasterization_trigger() const { 223 bool has_gpu_rasterization_trigger() const {
219 return has_gpu_rasterization_trigger_; 224 return has_gpu_rasterization_trigger_;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 float min_page_scale_factor_; 504 float min_page_scale_factor_;
500 float max_page_scale_factor_; 505 float max_page_scale_factor_;
501 gfx::Vector2dF elastic_overscroll_; 506 gfx::Vector2dF elastic_overscroll_;
502 bool has_gpu_rasterization_trigger_; 507 bool has_gpu_rasterization_trigger_;
503 bool content_is_suitable_for_gpu_rasterization_; 508 bool content_is_suitable_for_gpu_rasterization_;
504 bool gpu_rasterization_histogram_recorded_; 509 bool gpu_rasterization_histogram_recorded_;
505 510
506 SkColor background_color_; 511 SkColor background_color_;
507 bool has_transparent_background_; 512 bool has_transparent_background_;
508 513
514 bool have_scroll_event_handlers_;
509 bool have_wheel_event_handlers_; 515 bool have_wheel_event_handlers_;
510 516
511 scoped_ptr<AnimationRegistrar> animation_registrar_; 517 scoped_ptr<AnimationRegistrar> animation_registrar_;
512 scoped_ptr<AnimationHost> animation_host_; 518 scoped_ptr<AnimationHost> animation_host_;
513 519
514 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 520 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
515 521
516 // If set, then page scale animation has completed, but the client hasn't been 522 // If set, then page scale animation has completed, but the client hasn't been
517 // notified about it yet. 523 // notified about it yet.
518 bool did_complete_scale_animation_; 524 bool did_complete_scale_animation_;
(...skipping 24 matching lines...) Expand all
543 549
544 uint32_t surface_id_namespace_; 550 uint32_t surface_id_namespace_;
545 uint32_t next_surface_sequence_; 551 uint32_t next_surface_sequence_;
546 552
547 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 553 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
548 }; 554 };
549 555
550 } // namespace cc 556 } // namespace cc
551 557
552 #endif // CC_TREES_LAYER_TREE_HOST_H_ 558 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698