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

Side by Side Diff: cc/animation/animation_registrar.h

Issue 368883003: cc: Disallow scroll offset animations when impl-scrolling isn't supported (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/animation/animation_registrar.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_ANIMATION_ANIMATION_REGISTRAR_H_ 5 #ifndef CC_ANIMATION_ANIMATION_REGISTRAR_H_
6 #define CC_ANIMATION_ANIMATION_REGISTRAR_H_ 6 #define CC_ANIMATION_ANIMATION_REGISTRAR_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void UnregisterAnimationController(LayerAnimationController* controller); 44 void UnregisterAnimationController(LayerAnimationController* controller);
45 45
46 const AnimationControllerMap& active_animation_controllers() const { 46 const AnimationControllerMap& active_animation_controllers() const {
47 return active_animation_controllers_; 47 return active_animation_controllers_;
48 } 48 }
49 49
50 const AnimationControllerMap& all_animation_controllers() const { 50 const AnimationControllerMap& all_animation_controllers() const {
51 return all_animation_controllers_; 51 return all_animation_controllers_;
52 } 52 }
53 53
54 void set_supports_scroll_animations(bool supports_scroll_animations) {
55 supports_scroll_animations_ = supports_scroll_animations;
56 }
57
58 bool supports_scroll_animations() { return supports_scroll_animations_; }
59
54 private: 60 private:
55 AnimationRegistrar(); 61 AnimationRegistrar();
56 62
57 AnimationControllerMap active_animation_controllers_; 63 AnimationControllerMap active_animation_controllers_;
58 AnimationControllerMap all_animation_controllers_; 64 AnimationControllerMap all_animation_controllers_;
59 65
66 bool supports_scroll_animations_;
67
60 DISALLOW_COPY_AND_ASSIGN(AnimationRegistrar); 68 DISALLOW_COPY_AND_ASSIGN(AnimationRegistrar);
61 }; 69 };
62 70
63 } // namespace cc 71 } // namespace cc
64 72
65 #endif // CC_ANIMATION_ANIMATION_REGISTRAR_H_ 73 #endif // CC_ANIMATION_ANIMATION_REGISTRAR_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/animation_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698