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

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

Issue 2243473002: Adding overflow menu to media player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 3 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return true; 149 return true;
150 case MediaCastOffButtonPart: 150 case MediaCastOffButtonPart:
151 case MediaOverlayCastOffButtonPart: 151 case MediaOverlayCastOffButtonPart:
152 return MediaControlsPainter::paintMediaCastButton(o, paintInfo, r); 152 return MediaControlsPainter::paintMediaCastButton(o, paintInfo, r);
153 case MediaTrackSelectionCheckmarkPart: 153 case MediaTrackSelectionCheckmarkPart:
154 return MediaControlsPainter::paintMediaTrackSelectionCheckmark(o, paintI nfo, r); 154 return MediaControlsPainter::paintMediaTrackSelectionCheckmark(o, paintI nfo, r);
155 case MediaClosedCaptionsIconPart: 155 case MediaClosedCaptionsIconPart:
156 return MediaControlsPainter::paintMediaClosedCaptionsIcon(o, paintInfo, r); 156 return MediaControlsPainter::paintMediaClosedCaptionsIcon(o, paintInfo, r);
157 case MediaSubtitlesIconPart: 157 case MediaSubtitlesIconPart:
158 return MediaControlsPainter::paintMediaSubtitlesIcon(o, paintInfo, r); 158 return MediaControlsPainter::paintMediaSubtitlesIcon(o, paintInfo, r);
159 case MediaOverflowMenuButtonPart:
160 return MediaControlsPainter::paintMediaOverflowMenu(o, paintInfo, r);
159 case MenulistButtonPart: 161 case MenulistButtonPart:
160 case TextFieldPart: 162 case TextFieldPart:
161 case TextAreaPart: 163 case TextAreaPart:
162 return true; 164 return true;
163 case SearchFieldPart: 165 case SearchFieldPart:
164 return paintSearchField(o, paintInfo, r); 166 return paintSearchField(o, paintInfo, r);
165 case SearchFieldCancelButtonPart: 167 case SearchFieldCancelButtonPart:
166 return paintSearchFieldCancelButton(o, paintInfo, r); 168 return paintSearchFieldCancelButton(o, paintInfo, r);
167 default: 169 default:
168 break; 170 break;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 i.context.translate(unzoomedRect.x(), unzoomedRect.y()); 372 i.context.translate(unzoomedRect.x(), unzoomedRect.y());
371 i.context.scale(zoomLevel, zoomLevel); 373 i.context.scale(zoomLevel, zoomLevel);
372 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); 374 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y());
373 } 375 }
374 376
375 Platform::current()->fallbackThemeEngine()->paint(canvas, WebFallbackThemeEn gine::PartRadio, getWebFallbackThemeState(o), WebRect(unzoomedRect), &extraParam s); 377 Platform::current()->fallbackThemeEngine()->paint(canvas, WebFallbackThemeEn gine::PartRadio, getWebFallbackThemeState(o), WebRect(unzoomedRect), &extraParam s);
376 return false; 378 return false;
377 } 379 }
378 380
379 } // namespace blink 381 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698