| 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 30 matching lines...) Expand all Loading... |
| 41 static MediaControls* create(HTMLMediaElement&); | 41 static MediaControls* create(HTMLMediaElement&); |
| 42 | 42 |
| 43 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } | 43 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } |
| 44 | 44 |
| 45 void reset(); | 45 void reset(); |
| 46 | 46 |
| 47 void show(); | 47 void show(); |
| 48 void hide(); | 48 void hide(); |
| 49 bool isVisible() const; | 49 bool isVisible() const; |
| 50 | 50 |
| 51 void playbackStarted(); | |
| 52 void playbackProgressed(); | |
| 53 void playbackStopped(); | |
| 54 | |
| 55 void beginScrubbing(); | 51 void beginScrubbing(); |
| 56 void endScrubbing(); | 52 void endScrubbing(); |
| 57 | 53 |
| 58 void updateCurrentTimeDisplay(); | 54 void updateCurrentTimeDisplay(); |
| 59 | 55 |
| 60 void changedClosedCaptionsVisibility(); | 56 void changedClosedCaptionsVisibility(); |
| 61 void refreshClosedCaptionsButtonVisibility(); | 57 void refreshClosedCaptionsButtonVisibility(); |
| 62 void toggleTextTrackList(); | 58 void toggleTextTrackList(); |
| 63 void showTextTrackAtIndex(unsigned indexToEnable); | 59 void showTextTrackAtIndex(unsigned indexToEnable); |
| 64 void disableShowingTextTracks(); | 60 void disableShowingTextTracks(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 138 |
| 143 // Node | 139 // Node |
| 144 bool isMediaControls() const override { return true; } | 140 bool isMediaControls() const override { return true; } |
| 145 bool willRespondToMouseMoveEvents() override { return true; } | 141 bool willRespondToMouseMoveEvents() override { return true; } |
| 146 void defaultEventHandler(Event*) override; | 142 void defaultEventHandler(Event*) override; |
| 147 bool containsRelatedTarget(Event*); | 143 bool containsRelatedTarget(Event*); |
| 148 | 144 |
| 149 // Methods called by MediaControlsMediaEventListener. | 145 // Methods called by MediaControlsMediaEventListener. |
| 150 void onVolumeChange(); | 146 void onVolumeChange(); |
| 151 void onFocusIn(); | 147 void onFocusIn(); |
| 148 void onTimeUpdate(); |
| 149 void onPlay(); |
| 150 void onPause(); |
| 152 | 151 |
| 153 Member<HTMLMediaElement> m_mediaElement; | 152 Member<HTMLMediaElement> m_mediaElement; |
| 154 | 153 |
| 155 // Media control elements. | 154 // Media control elements. |
| 156 Member<MediaControlOverlayEnclosureElement> m_overlayEnclosure; | 155 Member<MediaControlOverlayEnclosureElement> m_overlayEnclosure; |
| 157 Member<MediaControlOverlayPlayButtonElement> m_overlayPlayButton; | 156 Member<MediaControlOverlayPlayButtonElement> m_overlayPlayButton; |
| 158 Member<MediaControlCastButtonElement> m_overlayCastButton; | 157 Member<MediaControlCastButtonElement> m_overlayCastButton; |
| 159 Member<MediaControlPanelEnclosureElement> m_enclosure; | 158 Member<MediaControlPanelEnclosureElement> m_enclosure; |
| 160 Member<MediaControlPanelElement> m_panel; | 159 Member<MediaControlPanelElement> m_panel; |
| 161 Member<MediaControlPlayButtonElement> m_playButton; | 160 Member<MediaControlPlayButtonElement> m_playButton; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 186 int m_panelWidth; | 185 int m_panelWidth; |
| 187 | 186 |
| 188 bool m_keepShowingUntilTimerFires : 1; | 187 bool m_keepShowingUntilTimerFires : 1; |
| 189 }; | 188 }; |
| 190 | 189 |
| 191 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 190 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
| 192 | 191 |
| 193 } // namespace blink | 192 } // namespace blink |
| 194 | 193 |
| 195 #endif | 194 #endif |
| OLD | NEW |