| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 virtual void didScrollWithScrollbar(ScrollbarPart, ScrollbarOrientation) {} | 367 virtual void didScrollWithScrollbar(ScrollbarPart, ScrollbarOrientation) {} |
| 368 | 368 |
| 369 // Returns the task runner to be used for scrollable area timers. | 369 // Returns the task runner to be used for scrollable area timers. |
| 370 // Ideally a frame-specific throttled one can be used. | 370 // Ideally a frame-specific throttled one can be used. |
| 371 virtual RefPtr<WebTaskRunner> getTimerTaskRunner() const = 0; | 371 virtual RefPtr<WebTaskRunner> getTimerTaskRunner() const = 0; |
| 372 | 372 |
| 373 // Callback for compositor-side scrolling. | 373 // Callback for compositor-side scrolling. |
| 374 void didScroll(const gfx::ScrollOffset&) override; | 374 void didScroll(const gfx::ScrollOffset&) override; |
| 375 | 375 |
| 376 virtual void scrollbarFrameRectChanged() {} |
| 377 |
| 376 protected: | 378 protected: |
| 377 ScrollableArea(); | 379 ScrollableArea(); |
| 378 | 380 |
| 379 ScrollbarOrientation scrollbarOrientationFromDirection( | 381 ScrollbarOrientation scrollbarOrientationFromDirection( |
| 380 ScrollDirectionPhysical) const; | 382 ScrollDirectionPhysical) const; |
| 381 float scrollStep(ScrollGranularity, ScrollbarOrientation) const; | 383 float scrollStep(ScrollGranularity, ScrollbarOrientation) const; |
| 382 | 384 |
| 383 void setScrollOrigin(const IntPoint&); | 385 void setScrollOrigin(const IntPoint&); |
| 384 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } | 386 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } |
| 385 | 387 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // vertical-lr / ltr NO NO | 451 // vertical-lr / ltr NO NO |
| 450 // vertical-lr / rtl NO YES | 452 // vertical-lr / rtl NO YES |
| 451 // vertical-rl / ltr YES NO | 453 // vertical-rl / ltr YES NO |
| 452 // vertical-rl / rtl YES YES | 454 // vertical-rl / rtl YES YES |
| 453 IntPoint m_scrollOrigin; | 455 IntPoint m_scrollOrigin; |
| 454 }; | 456 }; |
| 455 | 457 |
| 456 } // namespace blink | 458 } // namespace blink |
| 457 | 459 |
| 458 #endif // ScrollableArea_h | 460 #endif // ScrollableArea_h |
| OLD | NEW |