| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // that programmatic scrolls (i.e. setScrollOffset) are disabled when in | 324 // that programmatic scrolls (i.e. setScrollOffset) are disabled when in |
| 325 // updateScrollbars. Expose this here to allow RootFrameViewport to match the | 325 // updateScrollbars. Expose this here to allow RootFrameViewport to match the |
| 326 // semantics for now but it should be cleaned up at the source. | 326 // semantics for now but it should be cleaned up at the source. |
| 327 virtual bool isProgrammaticallyScrollable() { return true; } | 327 virtual bool isProgrammaticallyScrollable() { return true; } |
| 328 | 328 |
| 329 // Subtracts space occupied by this ScrollableArea's scrollbars. | 329 // Subtracts space occupied by this ScrollableArea's scrollbars. |
| 330 // Does nothing if overlay scrollbars are enabled. | 330 // Does nothing if overlay scrollbars are enabled. |
| 331 IntSize excludeScrollbars(const IntSize&) const; | 331 IntSize excludeScrollbars(const IntSize&) const; |
| 332 | 332 |
| 333 virtual int verticalScrollbarWidth( | 333 virtual int verticalScrollbarWidth( |
| 334 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const; | 334 OverlayScrollbarClipBehavior = IgnorePlatformOverlayScrollbarSize) const; |
| 335 virtual int horizontalScrollbarHeight( | 335 virtual int horizontalScrollbarHeight( |
| 336 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const; | 336 OverlayScrollbarClipBehavior = IgnorePlatformOverlayScrollbarSize) const; |
| 337 | 337 |
| 338 // Returns the widget associated with this ScrollableArea. | 338 // Returns the widget associated with this ScrollableArea. |
| 339 virtual FrameViewBase* getWidget() { return nullptr; } | 339 virtual FrameViewBase* getWidget() { return nullptr; } |
| 340 | 340 |
| 341 virtual LayoutBox* layoutBox() const { return nullptr; } | 341 virtual LayoutBox* layoutBox() const { return nullptr; } |
| 342 | 342 |
| 343 // Maps a quad from the coordinate system of a LayoutObject contained by the | 343 // Maps a quad from the coordinate system of a LayoutObject contained by the |
| 344 // ScrollableArea to the coordinate system of the ScrollableArea's visible | 344 // ScrollableArea to the coordinate system of the ScrollableArea's visible |
| 345 // content rect. If the LayoutObject* argument is null, the argument quad is | 345 // content rect. If the LayoutObject* argument is null, the argument quad is |
| 346 // considered to be in the coordinate space of the overflow rect. | 346 // considered to be in the coordinate space of the overflow rect. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // vertical-lr / ltr NO NO | 451 // vertical-lr / ltr NO NO |
| 452 // vertical-lr / rtl NO YES | 452 // vertical-lr / rtl NO YES |
| 453 // vertical-rl / ltr YES NO | 453 // vertical-rl / ltr YES NO |
| 454 // vertical-rl / rtl YES YES | 454 // vertical-rl / rtl YES YES |
| 455 IntPoint m_scrollOrigin; | 455 IntPoint m_scrollOrigin; |
| 456 }; | 456 }; |
| 457 | 457 |
| 458 } // namespace blink | 458 } // namespace blink |
| 459 | 459 |
| 460 #endif // ScrollableArea_h | 460 #endif // ScrollableArea_h |
| OLD | NEW |