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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void setCurrentValue(double); | 120 void setCurrentValue(double); |
121 double currentValue() const { return m_currentValue; } | 121 double currentValue() const { return m_currentValue; } |
122 | 122 |
123 protected: | 123 protected: |
124 explicit MediaControlTimeDisplayElement(Document&, MediaControlElementType); | 124 explicit MediaControlTimeDisplayElement(Document&, MediaControlElementType); |
125 | 125 |
126 private: | 126 private: |
127 double m_currentValue; | 127 double m_currentValue; |
128 }; | 128 }; |
129 | 129 |
130 // ---------------------------- | |
131 | |
132 class MediaControlMuteButtonElement : public MediaControlInputElement { | |
133 public: | |
134 void changedMute(); | |
135 | |
136 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } | |
137 | |
138 protected: | |
139 explicit MediaControlMuteButtonElement(Document&, MediaControlElementType); | |
140 | |
141 virtual void defaultEventHandler(Event*) OVERRIDE; | |
142 | |
143 private: | |
144 virtual void updateDisplayType() OVERRIDE; | |
145 }; | |
146 | |
147 // ---------------------------- | |
148 | |
149 class MediaControlVolumeSliderElement : public MediaControlInputElement { | |
150 public: | |
151 virtual bool willRespondToMouseMoveEvents() OVERRIDE; | |
152 virtual bool willRespondToMouseClickEvents() OVERRIDE; | |
153 void setVolume(double); | |
154 | |
155 protected: | |
156 explicit MediaControlVolumeSliderElement(Document&); | |
157 | |
158 virtual void defaultEventHandler(Event*) OVERRIDE; | |
159 }; | |
160 | |
161 } // namespace WebCore | 130 } // namespace WebCore |
162 | 131 |
163 #endif // MediaControlElementTypes_h | 132 #endif // MediaControlElementTypes_h |
OLD | NEW |