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

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

Issue 1689293002: cc: Move TryScroll from LayerImpl to LayerTreeHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master and fix unit test failures. 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 | « 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 return non_fast_scrollable_region_; 524 return non_fast_scrollable_region_;
525 } 525 }
526 526
527 void SetTouchEventHandlerRegion(const Region& region) { 527 void SetTouchEventHandlerRegion(const Region& region) {
528 touch_event_handler_region_ = region; 528 touch_event_handler_region_ = region;
529 } 529 }
530 const Region& touch_event_handler_region() const { 530 const Region& touch_event_handler_region() const {
531 return touch_event_handler_region_; 531 return touch_event_handler_region_;
532 } 532 }
533 533
534 InputHandler::ScrollStatus TryScroll(
535 const gfx::PointF& screen_space_point,
536 InputHandler::ScrollInputType type) const;
537
538 void SetDoubleSided(bool double_sided); 534 void SetDoubleSided(bool double_sided);
539 bool double_sided() const { return double_sided_; } 535 bool double_sided() const { return double_sided_; }
540 536
541 void SetTransform(const gfx::Transform& transform); 537 void SetTransform(const gfx::Transform& transform);
542 const gfx::Transform& transform() const { return transform_; } 538 const gfx::Transform& transform() const { return transform_; }
543 bool TransformIsAnimating() const; 539 bool TransformIsAnimating() const;
544 bool HasPotentiallyRunningTransformAnimation() const; 540 bool HasPotentiallyRunningTransformAnimation() const;
545 bool TransformIsAnimatingOnImplOnly() const; 541 bool TransformIsAnimatingOnImplOnly() const;
546 bool HasOnlyTranslationTransforms() const; 542 bool HasOnlyTranslationTransforms() const;
547 bool AnimationsPreserveAxisAlignment() const; 543 bool AnimationsPreserveAxisAlignment() const;
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 // If true, the layer or one of its descendants has a touch handler. 883 // If true, the layer or one of its descendants has a touch handler.
888 bool layer_or_descendant_has_touch_handler_; 884 bool layer_or_descendant_has_touch_handler_;
889 bool sorted_for_recursion_; 885 bool sorted_for_recursion_;
890 886
891 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 887 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
892 }; 888 };
893 889
894 } // namespace cc 890 } // namespace cc
895 891
896 #endif // CC_LAYERS_LAYER_IMPL_H_ 892 #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