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

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 lgtm nits Created 4 years, 8 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return MediaControlsPainter::paintMediaVolumeSliderThumb(o, paintInfo, r ); 130 return MediaControlsPainter::paintMediaVolumeSliderThumb(o, paintInfo, r );
131 case MediaFullScreenVolumeSliderPart: 131 case MediaFullScreenVolumeSliderPart:
132 case MediaFullScreenVolumeSliderThumbPart: 132 case MediaFullScreenVolumeSliderThumbPart:
133 case MediaTimeRemainingPart: 133 case MediaTimeRemainingPart:
134 case MediaCurrentTimePart: 134 case MediaCurrentTimePart:
135 case MediaControlsBackgroundPart: 135 case MediaControlsBackgroundPart:
136 return true; 136 return true;
137 case MediaCastOffButtonPart: 137 case MediaCastOffButtonPart:
138 case MediaOverlayCastOffButtonPart: 138 case MediaOverlayCastOffButtonPart:
139 return MediaControlsPainter::paintMediaCastButton(o, paintInfo, r); 139 return MediaControlsPainter::paintMediaCastButton(o, paintInfo, r);
140 case MediaTrackSelectionCheckmarkPart:
141 return MediaControlsPainter::paintMediaTrackSelectionCheckmark(o, paintI nfo, r);
142 case MediaClosedCaptionsIconPart:
143 return MediaControlsPainter::paintMediaClosedCaptionsIcon(o, paintInfo, r);
144 case MediaSubtitlesIconPart:
145 return MediaControlsPainter::paintMediaSubtitlesIcon(o, paintInfo, r);
140 case MenulistButtonPart: 146 case MenulistButtonPart:
141 case TextFieldPart: 147 case TextFieldPart:
142 case TextAreaPart: 148 case TextAreaPart:
143 return true; 149 return true;
144 case SearchFieldPart: 150 case SearchFieldPart:
145 return paintSearchField(o, paintInfo, r); 151 return paintSearchField(o, paintInfo, r);
146 case SearchFieldCancelButtonPart: 152 case SearchFieldCancelButtonPart:
147 return paintSearchFieldCancelButton(o, paintInfo, r); 153 return paintSearchFieldCancelButton(o, paintInfo, r);
148 case SearchFieldDecorationPart: 154 case SearchFieldDecorationPart:
149 return paintSearchFieldDecoration(o, paintInfo, r); 155 return paintSearchFieldDecoration(o, paintInfo, r);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 i.context.translate(unzoomedRect.x(), unzoomedRect.y()); 357 i.context.translate(unzoomedRect.x(), unzoomedRect.y());
352 i.context.scale(zoomLevel, zoomLevel); 358 i.context.scale(zoomLevel, zoomLevel);
353 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); 359 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y());
354 } 360 }
355 361
356 Platform::current()->fallbackThemeEngine()->paint(canvas, WebFallbackThemeEn gine::PartRadio, getWebFallbackThemeState(o), WebRect(unzoomedRect), &extraParam s); 362 Platform::current()->fallbackThemeEngine()->paint(canvas, WebFallbackThemeEn gine::PartRadio, getWebFallbackThemeState(o), WebRect(unzoomedRect), &extraParam s);
357 return false; 363 return false;
358 } 364 }
359 365
360 } // namespace blink 366 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp ('k') | third_party/WebKit/Source/platform/ThemeTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698