| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |