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

Side by Side Diff: third_party/WebKit/public/platform/WebThemeEngine.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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Gets the size of the given theme part. For variable sized items 157 // Gets the size of the given theme part. For variable sized items
158 // like vertical scrollbar thumbs, the width will be the required width of 158 // like vertical scrollbar thumbs, the width will be the required width of
159 // the track while the height will be the minimum height. 159 // the track while the height will be the minimum height.
160 virtual WebSize getSize(Part) { return WebSize(); } 160 virtual WebSize getSize(Part) { return WebSize(); }
161 161
162 struct ScrollbarStyle { 162 struct ScrollbarStyle {
163 int thumbThickness; 163 int thumbThickness;
164 int scrollbarMargin; 164 int scrollbarMargin;
165 WebColor color; 165 WebColor color;
166 double fadeOutDelaySeconds;
167 double fadeOutDurationSeconds;
168 }; 166 };
169 167
170 // Gets the overlay scrollbar style. Not used on Mac. 168 // Gets the overlay scrollbar style. Used for mobile theme.
171 virtual void getOverlayScrollbarStyle(ScrollbarStyle*) {} 169 virtual void getOverlayScrollbarStyle(ScrollbarStyle*) {}
172 170
173 // Paint the given the given theme part. 171 // Paint the given the given theme part.
174 virtual void paint(WebCanvas*, 172 virtual void paint(WebCanvas*,
175 Part, 173 Part,
176 State, 174 State,
177 const WebRect&, 175 const WebRect&,
178 const ExtraParams*) {} 176 const ExtraParams*) {}
179 }; 177 };
180 178
181 } // namespace blink 179 } // namespace blink
182 180
183 #endif 181 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698