| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // which bails out early if its already in updateScrollbars, the effect bein
g | 262 // which bails out early if its already in updateScrollbars, the effect bein
g |
| 263 // that programmatic scrolls (i.e. setScrollPosition) are disabled when in | 263 // that programmatic scrolls (i.e. setScrollPosition) are disabled when in |
| 264 // updateScrollbars. Expose this here to allow RootFrameViewport to match th
e | 264 // updateScrollbars. Expose this here to allow RootFrameViewport to match th
e |
| 265 // semantics for now but it should be cleaned up at the source. | 265 // semantics for now but it should be cleaned up at the source. |
| 266 virtual bool isProgrammaticallyScrollable() { return true; } | 266 virtual bool isProgrammaticallyScrollable() { return true; } |
| 267 | 267 |
| 268 // Subtracts space occupied by this ScrollableArea's scrollbars. | 268 // Subtracts space occupied by this ScrollableArea's scrollbars. |
| 269 // Does nothing if overlay scrollbars are enabled. | 269 // Does nothing if overlay scrollbars are enabled. |
| 270 IntSize excludeScrollbars(const IntSize&) const; | 270 IntSize excludeScrollbars(const IntSize&) const; |
| 271 | 271 |
| 272 // Returns 0 if overlay scrollbars are enabled. |
| 273 int verticalScrollbarWidth() const; |
| 274 int horizontalScrollbarHeight() const; |
| 275 |
| 272 // Returns the widget associated with this ScrollableArea. | 276 // Returns the widget associated with this ScrollableArea. |
| 273 virtual Widget* getWidget() { return nullptr; } | 277 virtual Widget* getWidget() { return nullptr; } |
| 274 | 278 |
| 275 virtual bool isFrameView() const { return false; } | 279 virtual bool isFrameView() const { return false; } |
| 276 virtual bool isPaintLayerScrollableArea() const { return false; } | 280 virtual bool isPaintLayerScrollableArea() const { return false; } |
| 277 | 281 |
| 278 // Need to promptly let go of owned animator objects. | 282 // Need to promptly let go of owned animator objects. |
| 279 EAGERLY_FINALIZE(); | 283 EAGERLY_FINALIZE(); |
| 280 DECLARE_VIRTUAL_TRACE(); | 284 DECLARE_VIRTUAL_TRACE(); |
| 281 | 285 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // vertical-lr / ltr NO NO | 340 // vertical-lr / ltr NO NO |
| 337 // vertical-lr / rtl NO YES | 341 // vertical-lr / rtl NO YES |
| 338 // vertical-rl / ltr YES NO | 342 // vertical-rl / ltr YES NO |
| 339 // vertical-rl / rtl YES YES | 343 // vertical-rl / rtl YES YES |
| 340 IntPoint m_scrollOrigin; | 344 IntPoint m_scrollOrigin; |
| 341 }; | 345 }; |
| 342 | 346 |
| 343 } // namespace blink | 347 } // namespace blink |
| 344 | 348 |
| 345 #endif // ScrollableArea_h | 349 #endif // ScrollableArea_h |
| OLD | NEW |