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

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

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Modified disable button. Added cast icon and message. Created 3 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 MediaRemotingCastIconPart:
163 return MediaControlsPainter::paintMediaRemotingCastIcon(o, paintInfo, r);
162 default: 164 default:
163 break; 165 break;
164 } 166 }
165 167
166 return true; // We don't support the appearance, so let the normal 168 return true; // We don't support the appearance, so let the normal
167 // background/border paint. 169 // background/border paint.
168 } 170 }
169 171
170 bool ThemePainter::paintBorderOnly(const LayoutObject& o, 172 bool ThemePainter::paintBorderOnly(const LayoutObject& o,
171 const PaintInfo& paintInfo, 173 const PaintInfo& paintInfo,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); 406 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y());
405 } 407 }
406 408
407 Platform::current()->fallbackThemeEngine()->paint( 409 Platform::current()->fallbackThemeEngine()->paint(
408 canvas, WebFallbackThemeEngine::PartRadio, getWebFallbackThemeState(o), 410 canvas, WebFallbackThemeEngine::PartRadio, getWebFallbackThemeState(o),
409 WebRect(unzoomedRect), &extraParams); 411 WebRect(unzoomedRect), &extraParams);
410 return false; 412 return false;
411 } 413 }
412 414
413 } // namespace blink 415 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698