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