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

Side by Side Diff: third_party/WebKit/public/platform/WebThemeEngine.h

Issue 2006643004: Fix scrollbar buttons on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 7 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) 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 SliderExtraParams slider; 145 SliderExtraParams slider;
146 InnerSpinButtonExtraParams innerSpin; 146 InnerSpinButtonExtraParams innerSpin;
147 ProgressBarExtraParams progressBar; 147 ProgressBarExtraParams progressBar;
148 }; 148 };
149 149
150 // Gets the size of the given theme part. For variable sized items 150 // Gets the size of the given theme part. For variable sized items
151 // like vertical scrollbar thumbs, the width will be the required width of 151 // like vertical scrollbar thumbs, the width will be the required width of
152 // the track while the height will be the minimum height. 152 // the track while the height will be the minimum height.
153 virtual WebSize getSize(Part) { return WebSize(); } 153 virtual WebSize getSize(Part) { return WebSize(); }
154 154
155 // Returns whether or not buttons should be drawn on the scrollbars.
156 virtual bool hasScrollbarButtons() { return true; }
157
155 struct ScrollbarStyle { 158 struct ScrollbarStyle {
156 int thumbThickness; 159 int thumbThickness;
157 int scrollbarMargin; 160 int scrollbarMargin;
158 WebColor color; 161 WebColor color;
159 }; 162 };
160 163
161 // Gets the overlay scrollbar style. Used for mobile theme. 164 // Gets the overlay scrollbar style. Used for mobile theme.
162 virtual void getOverlayScrollbarStyle(ScrollbarStyle*) { } 165 virtual void getOverlayScrollbarStyle(ScrollbarStyle*) { }
163 166
164 // Paint the given the given theme part. 167 // Paint the given the given theme part.
165 virtual void paint(WebCanvas*, Part, State, const WebRect&, const ExtraParam s*) { } 168 virtual void paint(WebCanvas*, Part, State, const WebRect&, const ExtraParam s*) { }
166 }; 169 };
167 170
168 } // namespace blink 171 } // namespace blink
169 172
170 #endif 173 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698