| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void beginScrubbing(); | 52 void beginScrubbing(); |
| 53 void endScrubbing(); | 53 void endScrubbing(); |
| 54 | 54 |
| 55 void updateCurrentTimeDisplay(); | 55 void updateCurrentTimeDisplay(); |
| 56 | 56 |
| 57 void updateVolume(); | 57 void updateVolume(); |
| 58 | 58 |
| 59 void changedClosedCaptionsVisibility(); | 59 void changedClosedCaptionsVisibility(); |
| 60 void refreshClosedCaptionsButtonVisibility(); | 60 void refreshClosedCaptionsButtonVisibility(); |
| 61 void textTracksChanged(); | 61 void textTracksChanged(); |
| 62 void timelineKnobDragged(); |
| 62 | 63 |
| 63 void enteredFullscreen(); | 64 void enteredFullscreen(); |
| 64 void exitedFullscreen(); | 65 void exitedFullscreen(); |
| 65 | 66 |
| 66 void startedCasting(); | 67 void startedCasting(); |
| 67 void stoppedCasting(); | 68 void stoppedCasting(); |
| 68 void refreshCastButtonVisibility(); | 69 void refreshCastButtonVisibility(); |
| 69 void showOverlayCastButton(); | 70 void showOverlayCastButton(); |
| 70 | 71 |
| 71 void updateTextTrackDisplay(); | 72 void updateTextTrackDisplay(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void createTextTrackDisplay(); | 105 void createTextTrackDisplay(); |
| 105 void showTextTrackDisplay(); | 106 void showTextTrackDisplay(); |
| 106 void hideTextTrackDisplay(); | 107 void hideTextTrackDisplay(); |
| 107 | 108 |
| 108 // Node | 109 // Node |
| 109 virtual bool isMediaControls() const override { return true; } | 110 virtual bool isMediaControls() const override { return true; } |
| 110 virtual bool willRespondToMouseMoveEvents() override { return true; } | 111 virtual bool willRespondToMouseMoveEvents() override { return true; } |
| 111 virtual void defaultEventHandler(Event*) override; | 112 virtual void defaultEventHandler(Event*) override; |
| 112 bool containsRelatedTarget(Event*); | 113 bool containsRelatedTarget(Event*); |
| 113 | 114 |
| 115 bool isInactiveElement(Node*) const; |
| 116 |
| 114 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 117 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
| 115 | 118 |
| 116 // Container for the media control elements. | 119 // Container for the media control elements. |
| 117 RawPtrWillBeMember<MediaControlPanelElement> m_panel; | 120 RawPtrWillBeMember<MediaControlPanelElement> m_panel; |
| 118 | 121 |
| 119 // Container for the text track cues. | 122 // Container for the text track cues. |
| 120 RawPtrWillBeMember<MediaControlTextTrackContainerElement> m_textDisplayConta
iner; | 123 RawPtrWillBeMember<MediaControlTextTrackContainerElement> m_textDisplayConta
iner; |
| 121 | 124 |
| 122 // Media control elements. | 125 // Media control elements. |
| 123 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton
; | 126 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton
; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 138 unsigned m_hideTimerBehaviorFlags; | 141 unsigned m_hideTimerBehaviorFlags; |
| 139 bool m_isMouseOverControls : 1; | 142 bool m_isMouseOverControls : 1; |
| 140 bool m_isPausedForScrubbing : 1; | 143 bool m_isPausedForScrubbing : 1; |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 146 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
| 144 | 147 |
| 145 } | 148 } |
| 146 | 149 |
| 147 #endif | 150 #endif |
| OLD | NEW |