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 13 matching lines...) Expand all Loading... |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef MediaControlElements_h | 30 #ifndef MediaControlElements_h |
31 #define MediaControlElements_h | 31 #define MediaControlElements_h |
32 | 32 |
33 #include "core/html/shadow/MediaControlElementTypes.h" | 33 #include "core/html/shadow/MediaControlElementTypes.h" |
| 34 #include "core/html/shadow/MediaRemotingInterstitial.h" |
34 #include "public/platform/WebLocalizedString.h" | 35 #include "public/platform/WebLocalizedString.h" |
35 | 36 |
36 namespace blink { | 37 namespace blink { |
37 | 38 |
38 class TextTrack; | 39 class TextTrack; |
39 | 40 |
40 // ---------------------------- | 41 // ---------------------------- |
41 | 42 |
42 class MediaControlPanelElement final : public MediaControlDivElement { | 43 class MediaControlPanelElement final : public MediaControlDivElement { |
43 public: | 44 public: |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 | 377 |
377 class MediaControlCurrentTimeDisplayElement final | 378 class MediaControlCurrentTimeDisplayElement final |
378 : public MediaControlTimeDisplayElement { | 379 : public MediaControlTimeDisplayElement { |
379 public: | 380 public: |
380 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); | 381 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); |
381 | 382 |
382 private: | 383 private: |
383 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); | 384 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); |
384 }; | 385 }; |
385 | 386 |
| 387 // ---------------------------- |
| 388 |
| 389 class MediaRemotingDisableButtonElement final : public HTMLInputElement { |
| 390 public: |
| 391 explicit MediaRemotingDisableButtonElement(MediaRemotingInterstitial&); |
| 392 |
| 393 void show(); |
| 394 void hide(); |
| 395 HTMLMediaElement& mediaElement() const { |
| 396 return m_interstitial->mediaElement(); |
| 397 } |
| 398 |
| 399 DECLARE_VIRTUAL_TRACE(); |
| 400 |
| 401 private: |
| 402 class MouseEventsListener; |
| 403 |
| 404 Member<MediaRemotingInterstitial> m_interstitial; |
| 405 Member<MouseEventsListener> m_listener; |
| 406 }; |
| 407 |
386 } // namespace blink | 408 } // namespace blink |
387 | 409 |
388 #endif // MediaControlElements_h | 410 #endif // MediaControlElements_h |
OLD | NEW |