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

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

Issue 792513004: Implement CSSOM smooth scroll for Elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 #if OS(MACOSX) 67 #if OS(MACOSX)
68 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } 68 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { }
69 #endif 69 #endif
70 70
71 void setCurrentPosition(const FloatPoint&); 71 void setCurrentPosition(const FloatPoint&);
72 FloatPoint currentPosition() const; 72 FloatPoint currentPosition() const;
73 73
74 virtual void cancelAnimations() { } 74 virtual void cancelAnimations() { }
75 virtual void serviceScrollAnimations() { } 75 virtual void serviceScrollAnimations() { }
76 virtual bool hasRunningAnimation() const { return false; }
76 77
77 virtual void contentAreaWillPaint() const { } 78 virtual void contentAreaWillPaint() const { }
78 virtual void mouseEnteredContentArea() const { } 79 virtual void mouseEnteredContentArea() const { }
79 virtual void mouseExitedContentArea() const { } 80 virtual void mouseExitedContentArea() const { }
80 virtual void mouseMovedInContentArea() const { } 81 virtual void mouseMovedInContentArea() const { }
81 virtual void mouseEnteredScrollbar(Scrollbar*) const { } 82 virtual void mouseEnteredScrollbar(Scrollbar*) const { }
82 virtual void mouseExitedScrollbar(Scrollbar*) const { } 83 virtual void mouseExitedScrollbar(Scrollbar*) const { }
83 virtual void willStartLiveResize() { } 84 virtual void willStartLiveResize() { }
84 virtual void contentsResized() const { } 85 virtual void contentsResized() const { }
85 virtual void willEndLiveResize() { } 86 virtual void willEndLiveResize() { }
(...skipping 22 matching lines...) Expand all
108 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
109 float m_currentPosY; // subclass code complexity. 110 float m_currentPosY; // subclass code complexity.
110 111
111 private: 112 private:
112 float clampScrollPosition(ScrollbarOrientation, float); 113 float clampScrollPosition(ScrollbarOrientation, float);
113 }; 114 };
114 115
115 } // namespace blink 116 } // namespace blink
116 117
117 #endif // ScrollAnimator_h 118 #endif // ScrollAnimator_h
OLDNEW
« no previous file with comments | « Source/platform/scroll/ProgrammaticScrollAnimator.cpp ('k') | Source/platform/scroll/ScrollAnimatorNone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698