| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() { } | 70 virtual void serviceScrollAnimations() { } |
| 71 | 71 |
| 72 virtual void mouseEnteredContentArea() const { } | |
| 73 virtual void mouseExitedContentArea() const { } | |
| 74 virtual void mouseMovedInContentArea() const { } | |
| 75 virtual void mouseEnteredScrollbar(Scrollbar*) const { } | |
| 76 virtual void mouseExitedScrollbar(Scrollbar*) const { } | |
| 77 virtual void contentsResized() const { } | 72 virtual void contentsResized() const { } |
| 78 | 73 |
| 79 virtual void contentAreaDidShow() const { } | 74 virtual void contentAreaDidShow() const { } |
| 80 virtual void contentAreaDidHide() const { } | 75 virtual void contentAreaDidHide() const { } |
| 81 | 76 |
| 82 virtual void finishCurrentScrollAnimations() { } | 77 virtual void finishCurrentScrollAnimations() { } |
| 83 | 78 |
| 84 virtual void didAddVerticalScrollbar(Scrollbar*) { } | 79 virtual void didAddVerticalScrollbar(Scrollbar*) { } |
| 85 virtual void willRemoveVerticalScrollbar(Scrollbar*) { } | 80 virtual void willRemoveVerticalScrollbar(Scrollbar*) { } |
| 86 virtual void didAddHorizontalScrollbar(Scrollbar*) { } | 81 virtual void didAddHorizontalScrollbar(Scrollbar*) { } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 99 float m_currentPosX; // We avoid using a FloatPoint in order to reduce | 94 float m_currentPosX; // We avoid using a FloatPoint in order to reduce |
| 100 float m_currentPosY; // subclass code complexity. | 95 float m_currentPosY; // subclass code complexity. |
| 101 | 96 |
| 102 private: | 97 private: |
| 103 float clampScrollPosition(ScrollbarOrientation, float); | 98 float clampScrollPosition(ScrollbarOrientation, float); |
| 104 }; | 99 }; |
| 105 | 100 |
| 106 } // namespace blink | 101 } // namespace blink |
| 107 | 102 |
| 108 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLANIMATOR_H_ | 103 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLANIMATOR_H_ |
| OLD | NEW |