| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2011, 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "modules/ModulesExport.h" | 33 #include "modules/ModulesExport.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class Event; | 37 class Event; |
| 38 class MediaControlsMediaEventListener; | 38 class MediaControlsMediaEventListener; |
| 39 class MediaControlsOrientationLockDelegate; | 39 class MediaControlsOrientationLockDelegate; |
| 40 class MediaControlsWindowEventListener; | 40 class MediaControlsWindowEventListener; |
| 41 class MediaControlCurrentTimeDisplayElement; | 41 class MediaControlCurrentTimeDisplayElement; |
| 42 class MediaControlMuteButtonElement; | 42 class MediaControlMuteButtonElement; |
| 43 class MediaControlOverflowMenuListElement; |
| 43 class MediaControlOverlayEnclosureElement; | 44 class MediaControlOverlayEnclosureElement; |
| 45 class MediaControlPanelElement; |
| 44 class MediaControlPanelEnclosureElement; | 46 class MediaControlPanelEnclosureElement; |
| 45 class MediaControlRemainingTimeDisplayElement; | 47 class MediaControlRemainingTimeDisplayElement; |
| 48 class MediaControlTextTrackListElement; |
| 46 class ShadowRoot; | 49 class ShadowRoot; |
| 47 | 50 |
| 48 // Default implementation of the core/ MediaControls interface used by | 51 // Default implementation of the core/ MediaControls interface used by |
| 49 // HTMLMediaElement. | 52 // HTMLMediaElement. |
| 50 class MODULES_EXPORT MediaControlsImpl final : public HTMLDivElement, | 53 class MODULES_EXPORT MediaControlsImpl final : public HTMLDivElement, |
| 51 public MediaControls { | 54 public MediaControls { |
| 52 USING_GARBAGE_COLLECTED_MIXIN(MediaControlsImpl); | 55 USING_GARBAGE_COLLECTED_MIXIN(MediaControlsImpl); |
| 53 WTF_MAKE_NONCOPYABLE(MediaControlsImpl); | 56 WTF_MAKE_NONCOPYABLE(MediaControlsImpl); |
| 54 | 57 |
| 55 public: | 58 public: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 84 // the attribute have changed. | 87 // the attribute have changed. |
| 85 void OnDisableRemotePlaybackAttributeChanged() override { | 88 void OnDisableRemotePlaybackAttributeChanged() override { |
| 86 RefreshCastButtonVisibility(); | 89 RefreshCastButtonVisibility(); |
| 87 } | 90 } |
| 88 // Notify us that the media element's network state has changed. | 91 // Notify us that the media element's network state has changed. |
| 89 void NetworkStateChanged() override; | 92 void NetworkStateChanged() override; |
| 90 LayoutObject* PanelLayoutObject() override; | 93 LayoutObject* PanelLayoutObject() override; |
| 91 LayoutObject* ContainerLayoutObject() override; | 94 LayoutObject* ContainerLayoutObject() override; |
| 92 // Return the internal elements, which is used by registering clicking | 95 // Return the internal elements, which is used by registering clicking |
| 93 // EventHandlers from MediaControlsWindowEventListener. | 96 // EventHandlers from MediaControlsWindowEventListener. |
| 94 MediaControlPanelElement* PanelElement() override { return panel_; } | 97 HTMLDivElement* PanelElement() override; |
| 95 void BeginScrubbing() override; | 98 void BeginScrubbing() override; |
| 96 void EndScrubbing() override; | 99 void EndScrubbing() override; |
| 97 void UpdateCurrentTimeDisplay() override; | 100 void UpdateCurrentTimeDisplay() override; |
| 98 void ToggleTextTrackList() override; | 101 void ToggleTextTrackList() override; |
| 99 void ShowTextTrackAtIndex(unsigned) override; | 102 void ShowTextTrackAtIndex(unsigned) override; |
| 100 void DisableShowingTextTracks() override; | 103 void DisableShowingTextTracks() override; |
| 101 // Called by the fullscreen buttons to toggle fulllscreen on/off. | 104 // Called by the fullscreen buttons to toggle fulllscreen on/off. |
| 102 void EnterFullscreen() override; | 105 void EnterFullscreen() override; |
| 103 void ExitFullscreen() override; | 106 void ExitFullscreen() override; |
| 104 void ToggleOverflowMenu() override; | 107 void ToggleOverflowMenu() override; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 IntSize size_; | 244 IntSize size_; |
| 242 | 245 |
| 243 bool keep_showing_until_timer_fires_ : 1; | 246 bool keep_showing_until_timer_fires_ : 1; |
| 244 }; | 247 }; |
| 245 | 248 |
| 246 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls()); | 249 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls()); |
| 247 | 250 |
| 248 } // namespace blink | 251 } // namespace blink |
| 249 | 252 |
| 250 #endif | 253 #endif |
| OLD | NEW |