| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |