| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 virtual void ContentAreaDidShow() const {} | 93 virtual void ContentAreaDidShow() const {} |
| 94 virtual void ContentAreaDidHide() const {} | 94 virtual void ContentAreaDidHide() const {} |
| 95 | 95 |
| 96 virtual void FinishCurrentScrollAnimations() {} | 96 virtual void FinishCurrentScrollAnimations() {} |
| 97 | 97 |
| 98 virtual void DidAddVerticalScrollbar(Scrollbar&) {} | 98 virtual void DidAddVerticalScrollbar(Scrollbar&) {} |
| 99 virtual void WillRemoveVerticalScrollbar(Scrollbar&) {} | 99 virtual void WillRemoveVerticalScrollbar(Scrollbar&) {} |
| 100 virtual void DidAddHorizontalScrollbar(Scrollbar&) {} | 100 virtual void DidAddHorizontalScrollbar(Scrollbar&) {} |
| 101 virtual void WillRemoveHorizontalScrollbar(Scrollbar&) {} | 101 virtual void WillRemoveHorizontalScrollbar(Scrollbar&) {} |
| 102 | 102 |
| 103 virtual void NotifyContentAreaScrolled(const ScrollOffset&) {} | 103 virtual void NotifyContentAreaScrolled(const ScrollOffset&, ScrollType) {} |
| 104 | 104 |
| 105 virtual bool SetScrollbarsVisibleForTesting(bool) { return false; } | 105 virtual bool SetScrollbarsVisibleForTesting(bool) { return false; } |
| 106 | 106 |
| 107 DECLARE_VIRTUAL_TRACE(); | 107 DECLARE_VIRTUAL_TRACE(); |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 explicit ScrollAnimatorBase(ScrollableArea*); | 110 explicit ScrollAnimatorBase(ScrollableArea*); |
| 111 | 111 |
| 112 virtual void NotifyOffsetChanged(); | 112 virtual void NotifyOffsetChanged(); |
| 113 | 113 |
| 114 Member<ScrollableArea> scrollable_area_; | 114 Member<ScrollableArea> scrollable_area_; |
| 115 | 115 |
| 116 ScrollOffset current_offset_; | 116 ScrollOffset current_offset_; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // ScrollAnimatorBase_h | 121 #endif // ScrollAnimatorBase_h |
| OLD | NEW |