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

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

Issue 2734483002: Reland Change minimum length of Aura overlay scrollbars. (Closed)
Patch Set: Fix breakage on Android Created 3 years, 8 months 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 ScrollbarPart, 139 ScrollbarPart,
140 bool painting = false) = 0; 140 bool painting = false) = 0;
141 virtual IntRect forwardButtonRect(const ScrollbarThemeClient&, 141 virtual IntRect forwardButtonRect(const ScrollbarThemeClient&,
142 ScrollbarPart, 142 ScrollbarPart,
143 bool painting = false) = 0; 143 bool painting = false) = 0;
144 virtual IntRect trackRect(const ScrollbarThemeClient&, 144 virtual IntRect trackRect(const ScrollbarThemeClient&,
145 bool painting = false) = 0; 145 bool painting = false) = 0;
146 virtual IntRect thumbRect(const ScrollbarThemeClient&); 146 virtual IntRect thumbRect(const ScrollbarThemeClient&);
147 virtual int thumbThickness(const ScrollbarThemeClient&); 147 virtual int thumbThickness(const ScrollbarThemeClient&);
148 148
149 virtual int minimumThumbLength(const ScrollbarThemeClient&); 149 virtual int minimumThumbLength(const ScrollbarThemeClient&) = 0;
150 150
151 virtual void splitTrack(const ScrollbarThemeClient&, 151 virtual void splitTrack(const ScrollbarThemeClient&,
152 const IntRect& track, 152 const IntRect& track,
153 IntRect& startTrack, 153 IntRect& startTrack,
154 IntRect& thumb, 154 IntRect& thumb,
155 IntRect& endTrack); 155 IntRect& endTrack);
156 156
157 virtual void paintScrollbarBackground(GraphicsContext&, const Scrollbar&) {} 157 virtual void paintScrollbarBackground(GraphicsContext&, const Scrollbar&) {}
158 virtual void paintTrackBackground(GraphicsContext&, 158 virtual void paintTrackBackground(GraphicsContext&,
159 const Scrollbar&, 159 const Scrollbar&,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); 214 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart);
215 215
216 private: 216 private:
217 static ScrollbarTheme& 217 static ScrollbarTheme&
218 nativeTheme(); // Must be implemented to return the correct theme subclass. 218 nativeTheme(); // Must be implemented to return the correct theme subclass.
219 static bool gMockScrollbarsEnabled; 219 static bool gMockScrollbarsEnabled;
220 }; 220 };
221 221
222 } // namespace blink 222 } // namespace blink
223 #endif 223 #endif
OLDNEW
« no previous file with comments | « content/child/webthemeengine_impl_android.cc ('k') | third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698