Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h

Issue 2478463003: Revert of Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
109 // The position the thumb would have, relative to the track, at the specified 107 // The position the thumb would have, relative to the track, at the specified
110 // scroll position. 108 // scroll position.
111 virtual int thumbPosition(const ScrollbarThemeClient&, float scrollPosition); 109 virtual int thumbPosition(const ScrollbarThemeClient&, float scrollPosition);
112 // The length of the thumb along the axis of the scrollbar. 110 // The length of the thumb along the axis of the scrollbar.
113 virtual int thumbLength(const ScrollbarThemeClient&); 111 virtual int thumbLength(const ScrollbarThemeClient&);
114 // The position of the track relative to the scrollbar. 112 // The position of the track relative to the scrollbar.
115 virtual int trackPosition(const ScrollbarThemeClient&); 113 virtual int trackPosition(const ScrollbarThemeClient&);
116 // The length of the track along the axis of the scrollbar. 114 // The length of the track along the axis of the scrollbar.
117 virtual int trackLength(const ScrollbarThemeClient&); 115 virtual int trackLength(const ScrollbarThemeClient&);
118 // The opacity to be applied to the thumb. 116 // The opacity to be applied to the thumb.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); 179 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart);
182 180
183 private: 181 private:
184 static ScrollbarTheme& 182 static ScrollbarTheme&
185 nativeTheme(); // Must be implemented to return the correct theme subclass. 183 nativeTheme(); // Must be implemented to return the correct theme subclass.
186 static bool gMockScrollbarsEnabled; 184 static bool gMockScrollbarsEnabled;
187 }; 185 };
188 186
189 } // namespace blink 187 } // namespace blink
190 #endif 188 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.cpp ('k') | third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698