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