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

Side by Side Diff: Source/core/rendering/RenderThemeChromiumSkia.cpp

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reenable previously crashing tests - now fixed Created 6 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
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumSkia.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. 2 * Copyright (C) 2007 Apple Inc.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Collabora Ltd. 4 * Copyright (C) 2008 Collabora Ltd.
5 * Copyright (C) 2008, 2009 Google Inc. 5 * Copyright (C) 2008, 2009 Google Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 bool RenderThemeChromiumSkia::paintMediaSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) 309 bool RenderThemeChromiumSkia::paintMediaSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
310 { 310 {
311 return RenderMediaControls::paintMediaControlsPart(MediaSliderThumb, object, paintInfo, rect); 311 return RenderMediaControls::paintMediaControlsPart(MediaSliderThumb, object, paintInfo, rect);
312 } 312 }
313 313
314 bool RenderThemeChromiumSkia::paintMediaToggleClosedCaptionsButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r) 314 bool RenderThemeChromiumSkia::paintMediaToggleClosedCaptionsButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
315 { 315 {
316 return RenderMediaControls::paintMediaControlsPart(MediaShowClosedCaptionsBu tton, o, paintInfo, r); 316 return RenderMediaControls::paintMediaControlsPart(MediaShowClosedCaptionsBu tton, o, paintInfo, r);
317 } 317 }
318 318
319 bool RenderThemeChromiumSkia::paintMediaCastButton(RenderObject* o, const PaintI nfo& paintInfo, const IntRect& r)
320 {
321 return RenderMediaControls::paintMediaControlsPart(MediaCastOffButton, o, pa intInfo, r);
322 }
323
319 bool RenderThemeChromiumSkia::paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) 324 bool RenderThemeChromiumSkia::paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
320 { 325 {
321 return RenderMediaControls::paintMediaControlsPart(MediaVolumeSliderThumb, o bject, paintInfo, rect); 326 return RenderMediaControls::paintMediaControlsPart(MediaVolumeSliderThumb, o bject, paintInfo, rect);
322 } 327 }
323 328
324 bool RenderThemeChromiumSkia::paintMediaPlayButton(RenderObject* object, const P aintInfo& paintInfo, const IntRect& rect) 329 bool RenderThemeChromiumSkia::paintMediaPlayButton(RenderObject* object, const P aintInfo& paintInfo, const IntRect& rect)
325 { 330 {
326 return RenderMediaControls::paintMediaControlsPart(MediaPlayButton, object, paintInfo, rect); 331 return RenderMediaControls::paintMediaControlsPart(MediaPlayButton, object, paintInfo, rect);
327 } 332 }
328 333
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 } 486 }
482 487
483 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope() 488 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope()
484 { 489 {
485 if (!m_needsFlipping) 490 if (!m_needsFlipping)
486 return; 491 return;
487 m_paintInfo.context->restore(); 492 m_paintInfo.context->restore();
488 } 493 }
489 494
490 } // namespace blink 495 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumSkia.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698