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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void mouseCapturedScrollbar(); | 115 void mouseCapturedScrollbar(); |
116 void mouseReleasedScrollbar(); | 116 void mouseReleasedScrollbar(); |
117 void contentAreaDidShow() const; | 117 void contentAreaDidShow() const; |
118 void contentAreaDidHide() const; | 118 void contentAreaDidHide() const; |
119 | 119 |
120 void finishCurrentScrollAnimations() const; | 120 void finishCurrentScrollAnimations() const; |
121 | 121 |
122 virtual void didAddScrollbar(Scrollbar&, ScrollbarOrientation); | 122 virtual void didAddScrollbar(Scrollbar&, ScrollbarOrientation); |
123 virtual void willRemoveScrollbar(Scrollbar&, ScrollbarOrientation); | 123 virtual void willRemoveScrollbar(Scrollbar&, ScrollbarOrientation); |
124 | 124 |
| 125 // Called when this ScrollableArea becomes or unbecomes the global root |
| 126 // scroller. |
| 127 virtual void didChangeGlobalRootScroller() {} |
| 128 |
125 virtual void contentsResized(); | 129 virtual void contentsResized(); |
126 | 130 |
127 bool hasOverlayScrollbars() const; | 131 bool hasOverlayScrollbars() const; |
128 void setScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme); | 132 void setScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme); |
129 void recalculateScrollbarOverlayColorTheme(Color); | 133 void recalculateScrollbarOverlayColorTheme(Color); |
130 ScrollbarOverlayColorTheme getScrollbarOverlayColorTheme() const { | 134 ScrollbarOverlayColorTheme getScrollbarOverlayColorTheme() const { |
131 return static_cast<ScrollbarOverlayColorTheme>( | 135 return static_cast<ScrollbarOverlayColorTheme>( |
132 m_scrollbarOverlayColorTheme); | 136 m_scrollbarOverlayColorTheme); |
133 } | 137 } |
134 | 138 |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 // vertical-lr / ltr NO NO | 444 // vertical-lr / ltr NO NO |
441 // vertical-lr / rtl NO YES | 445 // vertical-lr / rtl NO YES |
442 // vertical-rl / ltr YES NO | 446 // vertical-rl / ltr YES NO |
443 // vertical-rl / rtl YES YES | 447 // vertical-rl / rtl YES YES |
444 IntPoint m_scrollOrigin; | 448 IntPoint m_scrollOrigin; |
445 }; | 449 }; |
446 | 450 |
447 } // namespace blink | 451 } // namespace blink |
448 | 452 |
449 #endif // ScrollableArea_h | 453 #endif // ScrollableArea_h |
OLD | NEW |