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

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: Rebased. 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 case kMediaDownloadIconPart: 154 case kMediaDownloadIconPart:
155 return MediaControlsPainter::PaintMediaDownloadIcon(o, paint_info, r); 155 return MediaControlsPainter::PaintMediaDownloadIcon(o, paint_info, r);
156 case kMenulistButtonPart: 156 case kMenulistButtonPart:
157 case kTextFieldPart: 157 case kTextFieldPart:
158 case kTextAreaPart: 158 case kTextAreaPart:
159 return true; 159 return true;
160 case kSearchFieldPart: 160 case kSearchFieldPart:
161 return PaintSearchField(o, paint_info, r); 161 return PaintSearchField(o, paint_info, r);
162 case kSearchFieldCancelButtonPart: 162 case kSearchFieldCancelButtonPart:
163 return PaintSearchFieldCancelButton(o, paint_info, r); 163 return PaintSearchFieldCancelButton(o, paint_info, r);
164 case kMediaRemotingCastIconPart:
165 return MediaControlsPainter::PaintMediaRemotingCastIcon(o, paint_info, r);
164 default: 166 default:
165 break; 167 break;
166 } 168 }
167 169
168 return true; // We don't support the appearance, so let the normal 170 return true; // We don't support the appearance, so let the normal
169 // background/border paint. 171 // background/border paint.
170 } 172 }
171 173
172 bool ThemePainter::PaintBorderOnly(const LayoutObject& o, 174 bool ThemePainter::PaintBorderOnly(const LayoutObject& o,
173 const PaintInfo& paint_info, 175 const PaintInfo& paint_info,
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 i.context.Translate(-unzoomed_rect.X(), -unzoomed_rect.Y()); 410 i.context.Translate(-unzoomed_rect.X(), -unzoomed_rect.Y());
409 } 411 }
410 412
411 Platform::Current()->FallbackThemeEngine()->Paint( 413 Platform::Current()->FallbackThemeEngine()->Paint(
412 canvas, WebFallbackThemeEngine::kPartRadio, GetWebFallbackThemeState(o), 414 canvas, WebFallbackThemeEngine::kPartRadio, GetWebFallbackThemeState(o),
413 WebRect(unzoomed_rect), &extra_params); 415 WebRect(unzoomed_rect), &extra_params);
414 return false; 416 return false;
415 } 417 }
416 418
417 } // namespace blink 419 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698