| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 271 |
| 272 // Returns the widget associated with this ScrollableArea. | 272 // Returns the widget associated with this ScrollableArea. |
| 273 virtual Widget* getWidget() { return nullptr; } | 273 virtual Widget* getWidget() { return nullptr; } |
| 274 | 274 |
| 275 virtual LayoutBox* layoutBox() const { return nullptr; } | 275 virtual LayoutBox* layoutBox() const { return nullptr; } |
| 276 | 276 |
| 277 virtual bool isFrameView() const { return false; } | 277 virtual bool isFrameView() const { return false; } |
| 278 virtual bool isPaintLayerScrollableArea() const { return false; } | 278 virtual bool isPaintLayerScrollableArea() const { return false; } |
| 279 virtual bool isRootFrameViewport() const { return false; } | 279 virtual bool isRootFrameViewport() const { return false; } |
| 280 | 280 |
| 281 // Returns true if the scroller adjusts the scroll position to compensate |
| 282 // for layout movements (bit.ly/scroll-anchoring). |
| 283 virtual bool shouldPerformScrollAnchoring() const { return false; } |
| 284 |
| 281 // Need to promptly let go of owned animator objects. | 285 // Need to promptly let go of owned animator objects. |
| 282 EAGERLY_FINALIZE(); | 286 EAGERLY_FINALIZE(); |
| 283 DECLARE_VIRTUAL_TRACE(); | 287 DECLARE_VIRTUAL_TRACE(); |
| 284 | 288 |
| 285 virtual void clearScrollAnimators(); | 289 virtual void clearScrollAnimators(); |
| 286 | 290 |
| 287 protected: | 291 protected: |
| 288 ScrollableArea(); | 292 ScrollableArea(); |
| 289 | 293 |
| 290 ScrollbarOrientation scrollbarOrientationFromDirection(ScrollDirectionPhysic
al) const; | 294 ScrollbarOrientation scrollbarOrientationFromDirection(ScrollDirectionPhysic
al) const; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // vertical-lr / ltr NO NO | 342 // vertical-lr / ltr NO NO |
| 339 // vertical-lr / rtl NO YES | 343 // vertical-lr / rtl NO YES |
| 340 // vertical-rl / ltr YES NO | 344 // vertical-rl / ltr YES NO |
| 341 // vertical-rl / rtl YES YES | 345 // vertical-rl / rtl YES YES |
| 342 IntPoint m_scrollOrigin; | 346 IntPoint m_scrollOrigin; |
| 343 }; | 347 }; |
| 344 | 348 |
| 345 } // namespace blink | 349 } // namespace blink |
| 346 | 350 |
| 347 #endif // ScrollableArea_h | 351 #endif // ScrollableArea_h |
| OLD | NEW |