| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 protected: | 107 protected: |
| 108 MediaControlDivElement(MediaControls&, MediaControlElementType); | 108 MediaControlDivElement(MediaControls&, MediaControlElementType); |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 virtual bool isMediaControlElement() const override final { return true; } | 111 virtual bool isMediaControlElement() const override final { return true; } |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 // ---------------------------- | 114 // ---------------------------- |
| 115 | 115 |
| 116 class MediaControlInputElement : public HTMLInputElement, public MediaControlEle
ment { | 116 class MediaControlInputElement : public HTMLInputElement, public MediaControlEle
ment { |
| 117 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaControlInputElement); | 117 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN_NESTED(MediaControlInputElement, HTMLF
ormControlElement); |
| 118 public: | 118 public: |
| 119 DECLARE_VIRTUAL_TRACE(); | 119 DECLARE_VIRTUAL_TRACE(); |
| 120 | 120 |
| 121 protected: | 121 protected: |
| 122 MediaControlInputElement(MediaControls&, MediaControlElementType); | 122 MediaControlInputElement(MediaControls&, MediaControlElementType); |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 virtual void updateDisplayType() { } | 125 virtual void updateDisplayType() { } |
| 126 virtual bool isMediaControlElement() const override final { return true; } | 126 virtual bool isMediaControlElement() const override final { return true; } |
| 127 virtual bool isMouseFocusable() const override; | 127 virtual bool isMouseFocusable() const override; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 // ---------------------------- | 130 // ---------------------------- |
| 131 | 131 |
| 132 class MediaControlTimeDisplayElement : public MediaControlDivElement { | 132 class MediaControlTimeDisplayElement : public MediaControlDivElement { |
| 133 public: | 133 public: |
| 134 void setCurrentValue(double); | 134 void setCurrentValue(double); |
| 135 double currentValue() const { return m_currentValue; } | 135 double currentValue() const { return m_currentValue; } |
| 136 | 136 |
| 137 protected: | 137 protected: |
| 138 MediaControlTimeDisplayElement(MediaControls&, MediaControlElementType); | 138 MediaControlTimeDisplayElement(MediaControls&, MediaControlElementType); |
| 139 | 139 |
| 140 private: | 140 private: |
| 141 double m_currentValue; | 141 double m_currentValue; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace blink | 144 } // namespace blink |
| 145 | 145 |
| 146 #endif // MediaControlElementTypes_h | 146 #endif // MediaControlElementTypes_h |
| OLD | NEW |