OLD | NEW |
1 /** | 1 /** |
2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 case MediaDownloadIconPart: | 152 case MediaDownloadIconPart: |
153 return MediaControlsPainter::paintMediaDownloadIcon(o, paintInfo, r); | 153 return MediaControlsPainter::paintMediaDownloadIcon(o, paintInfo, r); |
154 case MenulistButtonPart: | 154 case MenulistButtonPart: |
155 case TextFieldPart: | 155 case TextFieldPart: |
156 case TextAreaPart: | 156 case TextAreaPart: |
157 return true; | 157 return true; |
158 case SearchFieldPart: | 158 case SearchFieldPart: |
159 return paintSearchField(o, paintInfo, r); | 159 return paintSearchField(o, paintInfo, r); |
160 case SearchFieldCancelButtonPart: | 160 case SearchFieldCancelButtonPart: |
161 return paintSearchFieldCancelButton(o, paintInfo, r); | 161 return paintSearchFieldCancelButton(o, paintInfo, r); |
| 162 case MediaRemotingDisableButtonPart: |
| 163 return MediaControlsPainter::paintMediaRemotingDisableButton(o, paintInfo, |
| 164 r); |
162 default: | 165 default: |
163 break; | 166 break; |
164 } | 167 } |
165 | 168 |
166 return true; // We don't support the appearance, so let the normal | 169 return true; // We don't support the appearance, so let the normal |
167 // background/border paint. | 170 // background/border paint. |
168 } | 171 } |
169 | 172 |
170 bool ThemePainter::paintBorderOnly(const LayoutObject& o, | 173 bool ThemePainter::paintBorderOnly(const LayoutObject& o, |
171 const PaintInfo& paintInfo, | 174 const PaintInfo& paintInfo, |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); | 407 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); |
405 } | 408 } |
406 | 409 |
407 Platform::current()->fallbackThemeEngine()->paint( | 410 Platform::current()->fallbackThemeEngine()->paint( |
408 canvas, WebFallbackThemeEngine::PartRadio, getWebFallbackThemeState(o), | 411 canvas, WebFallbackThemeEngine::PartRadio, getWebFallbackThemeState(o), |
409 WebRect(unzoomedRect), &extraParams); | 412 WebRect(unzoomedRect), &extraParams); |
410 return false; | 413 return false; |
411 } | 414 } |
412 | 415 |
413 } // namespace blink | 416 } // namespace blink |
OLD | NEW |