OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const PlatformMouseEvent&); | 97 const PlatformMouseEvent&); |
98 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, | 98 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, |
99 const PlatformMouseEvent&) { | 99 const PlatformMouseEvent&) { |
100 return false; | 100 return false; |
101 } | 101 } |
102 | 102 |
103 // The position of the thumb relative to the track. | 103 // The position of the thumb relative to the track. |
104 int thumbPosition(const ScrollbarThemeClient& scrollbar) { | 104 int thumbPosition(const ScrollbarThemeClient& scrollbar) { |
105 return thumbPosition(scrollbar, scrollbar.currentPos()); | 105 return thumbPosition(scrollbar, scrollbar.currentPos()); |
106 } | 106 } |
| 107 virtual double overlayScrollbarFadeOutDelaySeconds() const; |
| 108 virtual double overlayScrollbarFadeOutDurationSeconds() const; |
107 // The position the thumb would have, relative to the track, at the specified | 109 // The position the thumb would have, relative to the track, at the specified |
108 // scroll position. | 110 // scroll position. |
109 virtual int thumbPosition(const ScrollbarThemeClient&, float scrollPosition); | 111 virtual int thumbPosition(const ScrollbarThemeClient&, float scrollPosition); |
110 // The length of the thumb along the axis of the scrollbar. | 112 // The length of the thumb along the axis of the scrollbar. |
111 virtual int thumbLength(const ScrollbarThemeClient&); | 113 virtual int thumbLength(const ScrollbarThemeClient&); |
112 // The position of the track relative to the scrollbar. | 114 // The position of the track relative to the scrollbar. |
113 virtual int trackPosition(const ScrollbarThemeClient&); | 115 virtual int trackPosition(const ScrollbarThemeClient&); |
114 // The length of the track along the axis of the scrollbar. | 116 // The length of the track along the axis of the scrollbar. |
115 virtual int trackLength(const ScrollbarThemeClient&); | 117 virtual int trackLength(const ScrollbarThemeClient&); |
116 // The opacity to be applied to the thumb. | 118 // The opacity to be applied to the thumb. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 181 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
180 | 182 |
181 private: | 183 private: |
182 static ScrollbarTheme& | 184 static ScrollbarTheme& |
183 nativeTheme(); // Must be implemented to return the correct theme subclass. | 185 nativeTheme(); // Must be implemented to return the correct theme subclass. |
184 static bool gMockScrollbarsEnabled; | 186 static bool gMockScrollbarsEnabled; |
185 }; | 187 }; |
186 | 188 |
187 } // namespace blink | 189 } // namespace blink |
188 #endif | 190 #endif |
OLD | NEW |