| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Functions for controlling if you can scroll past the end of the document. | 69 // Functions for controlling if you can scroll past the end of the document. |
| 70 bool constrainsScrollingToContentEdge() const { return m_constrainsScrolling
ToContentEdge; } | 70 bool constrainsScrollingToContentEdge() const { return m_constrainsScrolling
ToContentEdge; } |
| 71 void setConstrainsScrollingToContentEdge(bool constrainsScrollingToContentEd
ge) { m_constrainsScrollingToContentEdge = constrainsScrollingToContentEdge; } | 71 void setConstrainsScrollingToContentEdge(bool constrainsScrollingToContentEd
ge) { m_constrainsScrollingToContentEdge = constrainsScrollingToContentEdge; } |
| 72 | 72 |
| 73 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert
icalScrollElasticity = scrollElasticity; } | 73 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert
icalScrollElasticity = scrollElasticity; } |
| 74 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol
lElasticity>(m_verticalScrollElasticity); } | 74 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol
lElasticity>(m_verticalScrollElasticity); } |
| 75 | 75 |
| 76 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho
rizontalScrollElasticity = scrollElasticity; } | 76 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho
rizontalScrollElasticity = scrollElasticity; } |
| 77 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr
ollElasticity>(m_horizontalScrollElasticity); } | 77 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr
ollElasticity>(m_horizontalScrollElasticity); } |
| 78 | 78 |
| 79 void mouseEnteredContentArea() const; | |
| 80 void mouseExitedContentArea() const; | |
| 81 void mouseMovedInContentArea() const; | |
| 82 void mouseEnteredScrollbar(Scrollbar*) const; | |
| 83 void mouseExitedScrollbar(Scrollbar*) const; | |
| 84 void contentAreaDidShow() const; | 79 void contentAreaDidShow() const; |
| 85 void contentAreaDidHide() const; | 80 void contentAreaDidHide() const; |
| 86 | 81 |
| 87 void finishCurrentScrollAnimations() const; | 82 void finishCurrentScrollAnimations() const; |
| 88 | 83 |
| 89 void didAddScrollbar(Scrollbar*, ScrollbarOrientation); | 84 void didAddScrollbar(Scrollbar*, ScrollbarOrientation); |
| 90 void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation); | 85 void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation); |
| 91 | 86 |
| 92 void contentsResized(); | 87 void contentsResized(); |
| 93 | 88 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // vertical-lr / ltr NO NO | 185 // vertical-lr / ltr NO NO |
| 191 // vertical-lr / rtl NO YES | 186 // vertical-lr / rtl NO YES |
| 192 // vertical-rl / ltr YES NO | 187 // vertical-rl / ltr YES NO |
| 193 // vertical-rl / rtl YES YES | 188 // vertical-rl / rtl YES YES |
| 194 IntPoint m_scrollOrigin; | 189 IntPoint m_scrollOrigin; |
| 195 }; | 190 }; |
| 196 | 191 |
| 197 } // namespace blink | 192 } // namespace blink |
| 198 | 193 |
| 199 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLABLEAREA_H_ | 194 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLABLEAREA_H_ |
| OLD | NEW |