| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |