| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 virtual void DidAddScrollbar(Scrollbar&, ScrollbarOrientation); | 125 virtual void DidAddScrollbar(Scrollbar&, ScrollbarOrientation); |
| 126 virtual void WillRemoveScrollbar(Scrollbar&, ScrollbarOrientation); | 126 virtual void WillRemoveScrollbar(Scrollbar&, ScrollbarOrientation); |
| 127 | 127 |
| 128 // Called when this ScrollableArea becomes or unbecomes the global root | 128 // Called when this ScrollableArea becomes or unbecomes the global root |
| 129 // scroller. | 129 // scroller. |
| 130 virtual void DidChangeGlobalRootScroller() {} | 130 virtual void DidChangeGlobalRootScroller() {} |
| 131 | 131 |
| 132 virtual void ContentsResized(); | 132 virtual void ContentsResized(); |
| 133 | 133 |
| 134 // TODO(chaopeng) Move LayoutObjectForScrollbarStyle out of ScrollableArea |
| 135 // into a new interface class with crbug.com/661236. |
| 136 virtual LayoutObject* LayoutObjectForScrollbarStyle() const { |
| 137 return nullptr; |
| 138 } |
| 139 |
| 134 bool HasOverlayScrollbars() const; | 140 bool HasOverlayScrollbars() const; |
| 135 void SetScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme); | 141 void SetScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme); |
| 136 void RecalculateScrollbarOverlayColorTheme(Color); | 142 void RecalculateScrollbarOverlayColorTheme(Color); |
| 137 ScrollbarOverlayColorTheme GetScrollbarOverlayColorTheme() const { | 143 ScrollbarOverlayColorTheme GetScrollbarOverlayColorTheme() const { |
| 138 return static_cast<ScrollbarOverlayColorTheme>( | 144 return static_cast<ScrollbarOverlayColorTheme>( |
| 139 scrollbar_overlay_color_theme_); | 145 scrollbar_overlay_color_theme_); |
| 140 } | 146 } |
| 141 | 147 |
| 142 // This getter will create a ScrollAnimatorBase if it doesn't already exist. | 148 // This getter will create a ScrollAnimatorBase if it doesn't already exist. |
| 143 ScrollAnimatorBase& GetScrollAnimator() const; | 149 ScrollAnimatorBase& GetScrollAnimator() const; |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 // vertical-lr / ltr NO NO | 468 // vertical-lr / ltr NO NO |
| 463 // vertical-lr / rtl NO YES | 469 // vertical-lr / rtl NO YES |
| 464 // vertical-rl / ltr YES NO | 470 // vertical-rl / ltr YES NO |
| 465 // vertical-rl / rtl YES YES | 471 // vertical-rl / rtl YES YES |
| 466 IntPoint scroll_origin_; | 472 IntPoint scroll_origin_; |
| 467 }; | 473 }; |
| 468 | 474 |
| 469 } // namespace blink | 475 } // namespace blink |
| 470 | 476 |
| 471 #endif // ScrollableArea_h | 477 #endif // ScrollableArea_h |
| OLD | NEW |