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

Side by Side Diff: Source/core/paint/MediaControlsPainter.h

Issue 1115203003: De-virtualize media control painting methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mac doesn't want cast button Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/paint/MediaControlsPainter.cpp » ('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) 2009 Apple Inc. 2 * Copyright (C) 2009 Apple Inc.
3 * Copyright (C) 2009 Google Inc. 3 * Copyright (C) 2009 Google Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef MediaControlsPainter_h 28 #ifndef MediaControlsPainter_h
29 #define MediaControlsPainter_h 29 #define MediaControlsPainter_h
30 30
31 #include "core/html/shadow/MediaControlElementTypes.h"
32
33 namespace blink { 31 namespace blink {
34 32
35 struct PaintInfo; 33 struct PaintInfo;
36 34
37 class ComputedStyle; 35 class ComputedStyle;
38 class IntRect; 36 class IntRect;
39 class LayoutObject; 37 class LayoutObject;
40 38
41 class MediaControlsPainter { 39 class MediaControlsPainter {
42 public: 40 public:
43 static bool paintMediaControlsPart(MediaControlElementType, LayoutObject*, c onst PaintInfo&, const IntRect&); 41 static bool paintMediaMuteButton(LayoutObject*, const PaintInfo&, const IntR ect&);
42 static bool paintMediaPlayButton(LayoutObject*, const PaintInfo&, const IntR ect&);
43 static bool paintMediaToggleClosedCaptionsButton(LayoutObject*, const PaintI nfo&, const IntRect&);
44 static bool paintMediaSlider(LayoutObject*, const PaintInfo&, const IntRect& );
45 static bool paintMediaSliderThumb(LayoutObject*, const PaintInfo&, const Int Rect&);
46 static bool paintMediaVolumeSlider(LayoutObject*, const PaintInfo&, const In tRect&);
47 static bool paintMediaVolumeSliderThumb(LayoutObject*, const PaintInfo&, con st IntRect&);
48 static bool paintMediaFullscreenButton(LayoutObject*, const PaintInfo&, cons t IntRect&);
49 static bool paintMediaOverlayPlayButton(LayoutObject*, const PaintInfo&, con st IntRect&);
50 static bool paintMediaCastButton(LayoutObject*, const PaintInfo&, const IntR ect&);
44 static void adjustMediaSliderThumbSize(ComputedStyle&); 51 static void adjustMediaSliderThumbSize(ComputedStyle&);
45 }; 52 };
46 53
47 } // namespace blink 54 } // namespace blink
48 55
49 #endif // MediaControlsPainter_h 56 #endif // MediaControlsPainter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/MediaControlsPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698