| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 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 19 matching lines...) Expand all Loading... |
| 30 #ifndef MediaControlElementTypes_h | 30 #ifndef MediaControlElementTypes_h |
| 31 #define MediaControlElementTypes_h | 31 #define MediaControlElementTypes_h |
| 32 | 32 |
| 33 #include "core/html/HTMLDivElement.h" | 33 #include "core/html/HTMLDivElement.h" |
| 34 #include "core/html/HTMLInputElement.h" | 34 #include "core/html/HTMLInputElement.h" |
| 35 #include "core/rendering/RenderBlock.h" | 35 #include "core/rendering/RenderBlock.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class HTMLMediaElement; | 39 class HTMLMediaElement; |
| 40 class MediaControllerInterface; | |
| 41 class MediaControls; | 40 class MediaControls; |
| 42 | 41 |
| 43 enum MediaControlElementType { | 42 enum MediaControlElementType { |
| 44 MediaEnterFullscreenButton = 0, | 43 MediaEnterFullscreenButton = 0, |
| 45 MediaMuteButton, | 44 MediaMuteButton, |
| 46 MediaPlayButton, | 45 MediaPlayButton, |
| 47 MediaSlider, | 46 MediaSlider, |
| 48 MediaSliderThumb, | 47 MediaSliderThumb, |
| 49 MediaShowClosedCaptionsButton, | 48 MediaShowClosedCaptionsButton, |
| 50 MediaHideClosedCaptionsButton, | 49 MediaHideClosedCaptionsButton, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 78 void hide(); | 77 void hide(); |
| 79 void show(); | 78 void show(); |
| 80 | 79 |
| 81 MediaControlElementType displayType() { return m_displayType; } | 80 MediaControlElementType displayType() { return m_displayType; } |
| 82 | 81 |
| 83 protected: | 82 protected: |
| 84 MediaControlElement(MediaControls&, MediaControlElementType, HTMLElement*); | 83 MediaControlElement(MediaControls&, MediaControlElementType, HTMLElement*); |
| 85 | 84 |
| 86 MediaControls& mediaControls() const { return m_mediaControls; } | 85 MediaControls& mediaControls() const { return m_mediaControls; } |
| 87 HTMLMediaElement& mediaElement() const; | 86 HTMLMediaElement& mediaElement() const; |
| 88 MediaControllerInterface& mediaControllerInterface() const; | |
| 89 | 87 |
| 90 void setDisplayType(MediaControlElementType); | 88 void setDisplayType(MediaControlElementType); |
| 91 | 89 |
| 92 private: | 90 private: |
| 93 MediaControls& m_mediaControls; | 91 MediaControls& m_mediaControls; |
| 94 MediaControlElementType m_displayType; | 92 MediaControlElementType m_displayType; |
| 95 HTMLElement* m_element; | 93 HTMLElement* m_element; |
| 96 }; | 94 }; |
| 97 | 95 |
| 98 // ---------------------------- | 96 // ---------------------------- |
| (...skipping 26 matching lines...) Expand all Loading... |
| 125 protected: | 123 protected: |
| 126 MediaControlTimeDisplayElement(MediaControls&, MediaControlElementType); | 124 MediaControlTimeDisplayElement(MediaControls&, MediaControlElementType); |
| 127 | 125 |
| 128 private: | 126 private: |
| 129 double m_currentValue; | 127 double m_currentValue; |
| 130 }; | 128 }; |
| 131 | 129 |
| 132 } // namespace WebCore | 130 } // namespace WebCore |
| 133 | 131 |
| 134 #endif // MediaControlElementTypes_h | 132 #endif // MediaControlElementTypes_h |
| OLD | NEW |