Chromium Code Reviews| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 | 75 |
| 76 // ---------------------------- | 76 // ---------------------------- |
| 77 | 77 |
| 78 class MediaControlOverlayEnclosureElement FINAL : public MediaControlDivElement { | 78 class MediaControlOverlayEnclosureElement FINAL : public MediaControlDivElement { |
| 79 public: | 79 public: |
| 80 static PassRefPtrWillBeRawPtr<MediaControlOverlayEnclosureElement> create(Me diaControls&); | 80 static PassRefPtrWillBeRawPtr<MediaControlOverlayEnclosureElement> create(Me diaControls&); |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 explicit MediaControlOverlayEnclosureElement(MediaControls&); | 83 explicit MediaControlOverlayEnclosureElement(MediaControls&); |
| 84 virtual const AtomicString& shadowPseudoId() const OVERRIDE; | 84 virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
| 85 void* preDispatchEventHandler(Event*) OVERRIDE; | |
|
Peter Beverloo
2014/09/15 12:59:38
+virtual
aberent
2014/09/16 09:44:18
Done.
| |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 // ---------------------------- | 88 // ---------------------------- |
| 88 | 89 |
| 89 class MediaControlMuteButtonElement FINAL : public MediaControlInputElement { | 90 class MediaControlMuteButtonElement FINAL : public MediaControlInputElement { |
| 90 public: | 91 public: |
| 91 static PassRefPtrWillBeRawPtr<MediaControlMuteButtonElement> create(MediaCon trols&); | 92 static PassRefPtrWillBeRawPtr<MediaControlMuteButtonElement> create(MediaCon trols&); |
| 92 | 93 |
| 93 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } | 94 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } |
| 94 virtual void updateDisplayType() OVERRIDE; | 95 virtual void updateDisplayType() OVERRIDE; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 | 183 |
| 183 private: | 184 private: |
| 184 explicit MediaControlFullscreenButtonElement(MediaControls&); | 185 explicit MediaControlFullscreenButtonElement(MediaControls&); |
| 185 | 186 |
| 186 virtual const AtomicString& shadowPseudoId() const OVERRIDE; | 187 virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
| 187 virtual void defaultEventHandler(Event*) OVERRIDE; | 188 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 // ---------------------------- | 191 // ---------------------------- |
| 191 | 192 |
| 193 class MediaControlCastButtonElement FINAL : public MediaControlInputElement { | |
| 194 public: | |
| 195 static PassRefPtrWillBeRawPtr<MediaControlCastButtonElement> create(MediaCon trols&, bool isOverlayButton); | |
| 196 | |
| 197 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } | |
| 198 | |
| 199 void setIsPlayingRemotely(bool); | |
| 200 | |
| 201 private: | |
| 202 explicit MediaControlCastButtonElement(MediaControls&, bool isOverlayButton) ; | |
| 203 | |
| 204 virtual const AtomicString& shadowPseudoId() const OVERRIDE; | |
| 205 virtual void defaultEventHandler(Event*) OVERRIDE; | |
| 206 virtual bool keepEventInNode(Event*) OVERRIDE; | |
| 207 | |
| 208 bool m_isOverlayButton; | |
| 209 }; | |
| 210 | |
| 211 // ---------------------------- | |
| 212 | |
| 192 class MediaControlVolumeSliderElement FINAL : public MediaControlInputElement { | 213 class MediaControlVolumeSliderElement FINAL : public MediaControlInputElement { |
| 193 public: | 214 public: |
| 194 static PassRefPtrWillBeRawPtr<MediaControlVolumeSliderElement> create(MediaC ontrols&); | 215 static PassRefPtrWillBeRawPtr<MediaControlVolumeSliderElement> create(MediaC ontrols&); |
| 195 | 216 |
| 196 virtual bool willRespondToMouseMoveEvents() OVERRIDE; | 217 virtual bool willRespondToMouseMoveEvents() OVERRIDE; |
| 197 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 218 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
| 198 void setVolume(double); | 219 void setVolume(double); |
| 199 | 220 |
| 200 private: | 221 private: |
| 201 explicit MediaControlVolumeSliderElement(MediaControls&); | 222 explicit MediaControlVolumeSliderElement(MediaControls&); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 244 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 265 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
| 245 | 266 |
| 246 IntRect m_videoDisplaySize; | 267 IntRect m_videoDisplaySize; |
| 247 float m_fontSize; | 268 float m_fontSize; |
| 248 }; | 269 }; |
| 249 | 270 |
| 250 | 271 |
| 251 } // namespace blink | 272 } // namespace blink |
| 252 | 273 |
| 253 #endif // MediaControlElements_h | 274 #endif // MediaControlElements_h |
| OLD | NEW |