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

Side by Side Diff: sky/engine/platform/scroll/ScrollAnimator.h

Issue 875283003: Make all callers of scheduleAnimation() use scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/page/PageAnimator.cpp ('k') | sky/engine/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&); 60 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&);
61 61
62 ScrollableArea* scrollableArea() const { return m_scrollableArea; } 62 ScrollableArea* scrollableArea() const { return m_scrollableArea; }
63 63
64 virtual void setIsActive() { } 64 virtual void setIsActive() { }
65 65
66 void setCurrentPosition(const FloatPoint&); 66 void setCurrentPosition(const FloatPoint&);
67 FloatPoint currentPosition() const; 67 FloatPoint currentPosition() const;
68 68
69 virtual void cancelAnimations() { } 69 virtual void cancelAnimations() { }
70 virtual void serviceScrollAnimations() { }
71 70
72 virtual void contentsResized() const { } 71 virtual void contentsResized() const { }
73 72
74 virtual void contentAreaDidShow() const { } 73 virtual void contentAreaDidShow() const { }
75 virtual void contentAreaDidHide() const { } 74 virtual void contentAreaDidHide() const { }
76 75
77 virtual void finishCurrentScrollAnimations() { } 76 virtual void finishCurrentScrollAnimations() { }
78 77
79 virtual void didAddVerticalScrollbar(Scrollbar*) { } 78 virtual void didAddVerticalScrollbar(Scrollbar*) { }
80 virtual void willRemoveVerticalScrollbar(Scrollbar*) { } 79 virtual void willRemoveVerticalScrollbar(Scrollbar*) { }
(...skipping 13 matching lines...) Expand all
94 float m_currentPosX; // We avoid using a FloatPoint in order to reduce 93 float m_currentPosX; // We avoid using a FloatPoint in order to reduce
95 float m_currentPosY; // subclass code complexity. 94 float m_currentPosY; // subclass code complexity.
96 95
97 private: 96 private:
98 float clampScrollPosition(ScrollbarOrientation, float); 97 float clampScrollPosition(ScrollbarOrientation, float);
99 }; 98 };
100 99
101 } // namespace blink 100 } // namespace blink
102 101
103 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLANIMATOR_H_ 102 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLANIMATOR_H_
OLDNEW
« no previous file with comments | « sky/engine/core/page/PageAnimator.cpp ('k') | sky/engine/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698