| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 virtual void setScrollPosition(const DoublePoint&, ScrollType, ScrollBehavio
r = ScrollBehaviorInstant); | 88 virtual void setScrollPosition(const DoublePoint&, ScrollType, ScrollBehavio
r = ScrollBehaviorInstant); |
| 89 virtual void scrollBy(const DoubleSize&, ScrollType, ScrollBehavior = Scroll
BehaviorInstant); | 89 virtual void scrollBy(const DoubleSize&, ScrollType, ScrollBehavior = Scroll
BehaviorInstant); |
| 90 void setScrollPositionSingleAxis(ScrollbarOrientation, double, ScrollType, S
crollBehavior = ScrollBehaviorInstant); | 90 void setScrollPositionSingleAxis(ScrollbarOrientation, double, ScrollType, S
crollBehavior = ScrollBehaviorInstant); |
| 91 | 91 |
| 92 // Scrolls the area so that the given rect, given in the document's content
coordinates, such that it's | 92 // Scrolls the area so that the given rect, given in the document's content
coordinates, such that it's |
| 93 // visible in the area. Returns the new location of the input rect relative
once again to the document. | 93 // visible in the area. Returns the new location of the input rect relative
once again to the document. |
| 94 // Note, in the case of a Document container, such as FrameView, the output
will always be the input rect | 94 // Note, in the case of a Document container, such as FrameView, the output
will always be the input rect |
| 95 // since scrolling it can't change the location of content relative to the d
ocument, unlike an overflowing | 95 // since scrolling it can't change the location of content relative to the d
ocument, unlike an overflowing |
| 96 // element. | 96 // element. |
| 97 virtual LayoutRect scrollIntoView(const LayoutRect& rectInContent, const Scr
ollAlignment& alignX, const ScrollAlignment& alignY); | 97 virtual LayoutRect scrollIntoView(const LayoutRect& rectInContent, const Scr
ollAlignment& alignX, const ScrollAlignment& alignY, ScrollType = ProgrammaticSc
roll); |
| 98 | 98 |
| 99 static bool scrollBehaviorFromString(const String&, ScrollBehavior&); | 99 static bool scrollBehaviorFromString(const String&, ScrollBehavior&); |
| 100 | 100 |
| 101 bool inLiveResize() const { return m_inLiveResize; } | 101 bool inLiveResize() const { return m_inLiveResize; } |
| 102 void willStartLiveResize(); | 102 void willStartLiveResize(); |
| 103 void willEndLiveResize(); | 103 void willEndLiveResize(); |
| 104 | 104 |
| 105 void contentAreaWillPaint() const; | 105 void contentAreaWillPaint() const; |
| 106 void mouseEnteredContentArea() const; | 106 void mouseEnteredContentArea() const; |
| 107 void mouseExitedContentArea() const; | 107 void mouseExitedContentArea() const; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // vertical-lr / ltr NO NO | 361 // vertical-lr / ltr NO NO |
| 362 // vertical-lr / rtl NO YES | 362 // vertical-lr / rtl NO YES |
| 363 // vertical-rl / ltr YES NO | 363 // vertical-rl / ltr YES NO |
| 364 // vertical-rl / rtl YES YES | 364 // vertical-rl / rtl YES YES |
| 365 IntPoint m_scrollOrigin; | 365 IntPoint m_scrollOrigin; |
| 366 }; | 366 }; |
| 367 | 367 |
| 368 } // namespace blink | 368 } // namespace blink |
| 369 | 369 |
| 370 #endif // ScrollableArea_h | 370 #endif // ScrollableArea_h |
| OLD | NEW |