| 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( |
| 392 MediaRemotingInterstitialElements&); |
| 393 |
| 394 void show(); |
| 395 void hide(); |
| 396 HTMLMediaElement& mediaElement() const { |
| 397 return m_interstitialElements->mediaElement(); |
| 398 } |
| 399 |
| 400 DECLARE_VIRTUAL_TRACE(); |
| 401 |
| 402 private: |
| 403 class MouseEventsListener; |
| 404 |
| 405 Member<MediaRemotingInterstitialElements> m_interstitialElements; |
| 406 Member<MouseEventsListener> m_listener; |
| 407 }; |
| 408 |
| 409 // ---------------------------- |
| 410 |
| 411 class MediaRemotingCastIconElement final : public HTMLInputElement { |
| 412 public: |
| 413 explicit MediaRemotingCastIconElement(MediaRemotingInterstitialElements&); |
| 414 |
| 415 void show(); |
| 416 void hide(); |
| 417 }; |
| 418 |
| 419 // ---------------------------- |
| 420 |
| 421 class MediaRemotingCastMessageElement final : public HTMLInputElement { |
| 422 public: |
| 423 explicit MediaRemotingCastMessageElement(MediaRemotingInterstitialElements&); |
| 424 |
| 425 void show(); |
| 426 void hide(); |
| 427 }; |
| 428 |
| 429 // ---------------------------- |
| 430 |
| 431 class MediaRemotingBackgroundImageElement final : public HTMLInputElement { |
| 432 public: |
| 433 explicit MediaRemotingBackgroundImageElement(MediaRemotingInterstitial&); |
| 434 |
| 435 void show(); |
| 436 void hide(); |
| 437 |
| 438 DECLARE_VIRTUAL_TRACE(); |
| 439 |
| 440 private: |
| 441 Member<MediaRemotingInterstitial> m_interstitial; |
| 442 }; |
| 443 |
| 386 } // namespace blink | 444 } // namespace blink |
| 387 | 445 |
| 388 #endif // MediaControlElements_h | 446 #endif // MediaControlElements_h |
| OLD | NEW |