| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MediaControls_h | 5 #ifndef MediaControls_h |
| 6 #define MediaControls_h | 6 #define MediaControls_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/heap/Visitor.h" | 10 #include "platform/heap/Visitor.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class Document; | 14 class Document; |
| 15 class Event; |
| 15 class HTMLMediaElement; | 16 class HTMLMediaElement; |
| 16 class LayoutObject; | 17 class LayoutObject; |
| 17 class MediaControlCastButtonElement; | 18 class MediaControlCastButtonElement; |
| 18 class MediaControlPanelElement; | 19 class MediaControlPanelElement; |
| 19 class MediaControlTimelineElement; | 20 class MediaControlTimelineElement; |
| 20 class MediaControlVolumeSliderElement; | 21 class MediaControlVolumeSliderElement; |
| 21 class ShadowRoot; | 22 class ShadowRoot; |
| 22 | 23 |
| 23 // MediaControls is an interface to abstract the HTMLMediaElement controls. The | 24 // MediaControls is an interface to abstract the HTMLMediaElement controls. The |
| 24 // implementation will be used using a Factory (see below). | 25 // implementation will be used using a Factory (see below). |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual void updateCurrentTimeDisplay() = 0; | 98 virtual void updateCurrentTimeDisplay() = 0; |
| 98 virtual void toggleTextTrackList() = 0; | 99 virtual void toggleTextTrackList() = 0; |
| 99 virtual void showTextTrackAtIndex(unsigned indexToEnable) = 0; | 100 virtual void showTextTrackAtIndex(unsigned indexToEnable) = 0; |
| 100 virtual void disableShowingTextTracks() = 0; | 101 virtual void disableShowingTextTracks() = 0; |
| 101 virtual void enterFullscreen() = 0; | 102 virtual void enterFullscreen() = 0; |
| 102 virtual void exitFullscreen() = 0; | 103 virtual void exitFullscreen() = 0; |
| 103 virtual void showOverlayCastButtonIfNeeded() = 0; | 104 virtual void showOverlayCastButtonIfNeeded() = 0; |
| 104 virtual void toggleOverflowMenu() = 0; | 105 virtual void toggleOverflowMenu() = 0; |
| 105 virtual bool overflowMenuVisible() = 0; | 106 virtual bool overflowMenuVisible() = 0; |
| 106 virtual void onMediaControlsEnabledChange() = 0; | 107 virtual void onMediaControlsEnabledChange() = 0; |
| 108 virtual void onMediaKeyboardEvent(Event*) = 0; |
| 107 | 109 |
| 108 DECLARE_VIRTUAL_TRACE(); | 110 DECLARE_VIRTUAL_TRACE(); |
| 109 | 111 |
| 110 private: | 112 private: |
| 111 Member<HTMLMediaElement> m_mediaElement; | 113 Member<HTMLMediaElement> m_mediaElement; |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace blink | 116 } // namespace blink |
| 115 | 117 |
| 116 #endif // MediaControls_h | 118 #endif // MediaControls_h |
| OLD | NEW |