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

Side by Side Diff: Source/platform/scroll/ScrollAnimator.h

Issue 905463007: Update ScrollAnimator's copy of the layer dimensions after layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 /* 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void serviceScrollAnimations() { } 75 virtual void serviceScrollAnimations() { }
76 virtual bool hasRunningAnimation() const { return false; } 76 virtual bool hasRunningAnimation() const { return false; }
77 77
78 virtual void contentAreaWillPaint() const { } 78 virtual void contentAreaWillPaint() const { }
79 virtual void mouseEnteredContentArea() const { } 79 virtual void mouseEnteredContentArea() const { }
80 virtual void mouseExitedContentArea() const { } 80 virtual void mouseExitedContentArea() const { }
81 virtual void mouseMovedInContentArea() const { } 81 virtual void mouseMovedInContentArea() const { }
82 virtual void mouseEnteredScrollbar(Scrollbar*) const { } 82 virtual void mouseEnteredScrollbar(Scrollbar*) const { }
83 virtual void mouseExitedScrollbar(Scrollbar*) const { } 83 virtual void mouseExitedScrollbar(Scrollbar*) const { }
84 virtual void willStartLiveResize() { } 84 virtual void willStartLiveResize() { }
85 virtual void contentsResized() const { } 85 virtual void contentsResized() { }
ajuma 2015/02/06 14:41:13 ScrollAnimatorMac also overrides this, so ScrollAn
86 virtual void willEndLiveResize() { } 86 virtual void willEndLiveResize() { }
87 virtual void contentAreaDidShow() const { } 87 virtual void contentAreaDidShow() const { }
88 virtual void contentAreaDidHide() const { } 88 virtual void contentAreaDidHide() const { }
89 89
90 virtual void finishCurrentScrollAnimations() { } 90 virtual void finishCurrentScrollAnimations() { }
91 91
92 virtual void didAddVerticalScrollbar(Scrollbar*) { } 92 virtual void didAddVerticalScrollbar(Scrollbar*) { }
93 virtual void willRemoveVerticalScrollbar(Scrollbar*) { } 93 virtual void willRemoveVerticalScrollbar(Scrollbar*) { }
94 virtual void didAddHorizontalScrollbar(Scrollbar*) { } 94 virtual void didAddHorizontalScrollbar(Scrollbar*) { }
95 virtual void willRemoveHorizontalScrollbar(Scrollbar*) { } 95 virtual void willRemoveHorizontalScrollbar(Scrollbar*) { }
(...skipping 13 matching lines...) Expand all
109 float m_currentPosX; // We avoid using a FloatPoint in order to reduce 109 float m_currentPosX; // We avoid using a FloatPoint in order to reduce
110 float m_currentPosY; // subclass code complexity. 110 float m_currentPosY; // subclass code complexity.
111 111
112 private: 112 private:
113 float clampScrollPosition(ScrollbarOrientation, float); 113 float clampScrollPosition(ScrollbarOrientation, float);
114 }; 114 };
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // ScrollAnimator_h 118 #endif // ScrollAnimator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698