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

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

Issue 2495123002: Make all scrollable layers visible to hit testing. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « no previous file | 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 416
417 void Set3dSortingContextId(int id); 417 void Set3dSortingContextId(int id);
418 int sorting_context_id() { return sorting_context_id_; } 418 int sorting_context_id() { return sorting_context_id_; }
419 419
420 // Get the correct invalidation region instead of conservative Rect 420 // Get the correct invalidation region instead of conservative Rect
421 // for layers that provide it. 421 // for layers that provide it.
422 virtual Region GetInvalidationRegionForDebugging(); 422 virtual Region GetInvalidationRegionForDebugging();
423 423
424 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; 424 virtual gfx::Rect GetEnclosingRectInTargetSpace() const;
425 425
426 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) {
427 scrolls_drawn_descendant_ = scrolls_drawn_descendant;
428 }
429
430 bool scrolls_drawn_descendant() { return scrolls_drawn_descendant_; }
431
432 int num_copy_requests_in_target_subtree(); 426 int num_copy_requests_in_target_subtree();
433 427
434 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); 428 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded();
435 429
436 bool IsHidden() const; 430 bool IsHidden() const;
437 431
438 float GetIdealContentsScale() const; 432 float GetIdealContentsScale() const;
439 433
440 bool was_ever_ready_since_last_transform_animation() const { 434 bool was_ever_ready_since_last_transform_animation() const {
441 return was_ever_ready_since_last_transform_animation_; 435 return was_ever_ready_since_last_transform_animation_;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 DrawProperties draw_properties_; 567 DrawProperties draw_properties_;
574 PerformanceProperties<LayerImpl> performance_properties_; 568 PerformanceProperties<LayerImpl> performance_properties_;
575 569
576 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 570 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
577 owned_debug_info_; 571 owned_debug_info_;
578 base::trace_event::ConvertableToTraceFormat* debug_info_; 572 base::trace_event::ConvertableToTraceFormat* debug_info_;
579 std::unique_ptr<RenderSurfaceImpl> render_surface_; 573 std::unique_ptr<RenderSurfaceImpl> render_surface_;
580 gfx::Size preferred_raster_bounds_; 574 gfx::Size preferred_raster_bounds_;
581 575
582 bool has_preferred_raster_bounds_ : 1; 576 bool has_preferred_raster_bounds_ : 1;
583 bool scrolls_drawn_descendant_ : 1;
584 bool has_will_change_transform_hint_ : 1; 577 bool has_will_change_transform_hint_ : 1;
585 bool needs_push_properties_ : 1; 578 bool needs_push_properties_ : 1;
586 bool scrollbars_hidden_ : 1; 579 bool scrollbars_hidden_ : 1;
587 580
588 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 581 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
589 }; 582 };
590 583
591 } // namespace cc 584 } // namespace cc
592 585
593 #endif // CC_LAYERS_LAYER_IMPL_H_ 586 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698