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 virtual LayoutObject* LayoutObjectForScrollbars() const { return nullptr; } | |
bokan
2017/06/27 17:48:52
Lets call this LayoutObjectForScrollbarStyle. Also
| |
135 virtual bool ShouldUseCustomScrollbars(LayoutObject*&) const { return false; } | |
136 | |
134 bool HasOverlayScrollbars() const; | 137 bool HasOverlayScrollbars() const; |
135 void SetScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme); | 138 void SetScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme); |
136 void RecalculateScrollbarOverlayColorTheme(Color); | 139 void RecalculateScrollbarOverlayColorTheme(Color); |
137 ScrollbarOverlayColorTheme GetScrollbarOverlayColorTheme() const { | 140 ScrollbarOverlayColorTheme GetScrollbarOverlayColorTheme() const { |
138 return static_cast<ScrollbarOverlayColorTheme>( | 141 return static_cast<ScrollbarOverlayColorTheme>( |
139 scrollbar_overlay_color_theme_); | 142 scrollbar_overlay_color_theme_); |
140 } | 143 } |
141 | 144 |
142 // This getter will create a ScrollAnimatorBase if it doesn't already exist. | 145 // This getter will create a ScrollAnimatorBase if it doesn't already exist. |
143 ScrollAnimatorBase& GetScrollAnimator() const; | 146 ScrollAnimatorBase& GetScrollAnimator() const; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
462 // vertical-lr / ltr NO NO | 465 // vertical-lr / ltr NO NO |
463 // vertical-lr / rtl NO YES | 466 // vertical-lr / rtl NO YES |
464 // vertical-rl / ltr YES NO | 467 // vertical-rl / ltr YES NO |
465 // vertical-rl / rtl YES YES | 468 // vertical-rl / rtl YES YES |
466 IntPoint scroll_origin_; | 469 IntPoint scroll_origin_; |
467 }; | 470 }; |
468 | 471 |
469 } // namespace blink | 472 } // namespace blink |
470 | 473 |
471 #endif // ScrollableArea_h | 474 #endif // ScrollableArea_h |
OLD | NEW |