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

Side by Side Diff: third_party/WebKit/Source/core/paint/ThemePainter.cpp

Issue 1079323002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and addressed fs' comments Created 4 years, 9 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 * 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return MediaControlsPainter::paintMediaVolumeSliderThumb(o, paintInfo, r ); 135 return MediaControlsPainter::paintMediaVolumeSliderThumb(o, paintInfo, r );
136 case MediaFullScreenVolumeSliderPart: 136 case MediaFullScreenVolumeSliderPart:
137 case MediaFullScreenVolumeSliderThumbPart: 137 case MediaFullScreenVolumeSliderThumbPart:
138 case MediaTimeRemainingPart: 138 case MediaTimeRemainingPart:
139 case MediaCurrentTimePart: 139 case MediaCurrentTimePart:
140 case MediaControlsBackgroundPart: 140 case MediaControlsBackgroundPart:
141 return true; 141 return true;
142 case MediaCastOffButtonPart: 142 case MediaCastOffButtonPart:
143 case MediaOverlayCastOffButtonPart: 143 case MediaOverlayCastOffButtonPart:
144 return MediaControlsPainter::paintMediaCastButton(o, paintInfo, r); 144 return MediaControlsPainter::paintMediaCastButton(o, paintInfo, r);
145 case MediaTrackSelectionCheckmarkPart:
146 return MediaControlsPainter::paintMediaTrackSelectionCheckmark(o, paintI nfo, r);
147 case MediaClosedCaptionsIconPart:
148 return MediaControlsPainter::paintMediaClosedCaptionsIcon(o, paintInfo, r);
149 case MediaSubtitlesIconPart:
150 return MediaControlsPainter::paintMediaSubtitlesIcon(o, paintInfo, r);
145 case MenulistButtonPart: 151 case MenulistButtonPart:
146 case TextFieldPart: 152 case TextFieldPart:
147 case TextAreaPart: 153 case TextAreaPart:
148 return true; 154 return true;
149 case SearchFieldPart: 155 case SearchFieldPart:
150 return paintSearchField(o, paintInfo, r); 156 return paintSearchField(o, paintInfo, r);
151 case SearchFieldCancelButtonPart: 157 case SearchFieldCancelButtonPart:
152 return paintSearchFieldCancelButton(o, paintInfo, r); 158 return paintSearchFieldCancelButton(o, paintInfo, r);
153 case SearchFieldDecorationPart: 159 case SearchFieldDecorationPart:
154 return paintSearchFieldDecoration(o, paintInfo, r); 160 return paintSearchFieldDecoration(o, paintInfo, r);
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 i.context.translate(unzoomedRect.x(), unzoomedRect.y()); 375 i.context.translate(unzoomedRect.x(), unzoomedRect.y());
370 i.context.scale(zoomLevel, zoomLevel); 376 i.context.scale(zoomLevel, zoomLevel);
371 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); 377 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y());
372 } 378 }
373 379
374 Platform::current()->fallbackThemeEngine()->paint(canvas, WebFallbackThemeEn gine::PartRadio, getWebFallbackThemeState(o), WebRect(unzoomedRect), &extraParam s); 380 Platform::current()->fallbackThemeEngine()->paint(canvas, WebFallbackThemeEn gine::PartRadio, getWebFallbackThemeState(o), WebRect(unzoomedRect), &extraParam s);
375 return false; 381 return false;
376 } 382 }
377 383
378 } // namespace blink 384 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698