| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void hideMediaControlsTimerFired(Timer<MediaControls>*); | 97 void hideMediaControlsTimerFired(Timer<MediaControls>*); |
| 98 void startHideMediaControlsTimer(); | 98 void startHideMediaControlsTimer(); |
| 99 void stopHideMediaControlsTimer(); | 99 void stopHideMediaControlsTimer(); |
| 100 void resetHideMediaControlsTimer(); | 100 void resetHideMediaControlsTimer(); |
| 101 | 101 |
| 102 // Attempts to show the overlay cast button. If it is covered by another | 102 // Attempts to show the overlay cast button. If it is covered by another |
| 103 // element in the page, it will be hidden. | 103 // element in the page, it will be hidden. |
| 104 void tryShowOverlayCastButton(); | 104 void tryShowOverlayCastButton(); |
| 105 | 105 |
| 106 // Node | 106 // Node |
| 107 virtual bool isMediaControls() const override { return true; } | 107 bool isMediaControls() const override { return true; } |
| 108 virtual bool willRespondToMouseMoveEvents() override { return true; } | 108 bool willRespondToMouseMoveEvents() override { return true; } |
| 109 virtual void defaultEventHandler(Event*) override; | 109 void defaultEventHandler(Event*) override; |
| 110 bool containsRelatedTarget(Event*); | 110 bool containsRelatedTarget(Event*); |
| 111 | 111 |
| 112 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 112 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
| 113 | 113 |
| 114 // Media control elements. | 114 // Media control elements. |
| 115 RawPtrWillBeMember<MediaControlOverlayEnclosureElement> m_overlayEnclosure; | 115 RawPtrWillBeMember<MediaControlOverlayEnclosureElement> m_overlayEnclosure; |
| 116 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton
; | 116 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton
; |
| 117 RawPtrWillBeMember<MediaControlCastButtonElement> m_overlayCastButton; | 117 RawPtrWillBeMember<MediaControlCastButtonElement> m_overlayCastButton; |
| 118 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure; | 118 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure; |
| 119 RawPtrWillBeMember<MediaControlPanelElement> m_panel; | 119 RawPtrWillBeMember<MediaControlPanelElement> m_panel; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 131 unsigned m_hideTimerBehaviorFlags; | 131 unsigned m_hideTimerBehaviorFlags; |
| 132 bool m_isMouseOverControls : 1; | 132 bool m_isMouseOverControls : 1; |
| 133 bool m_isPausedForScrubbing : 1; | 133 bool m_isPausedForScrubbing : 1; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 136 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
| 137 | 137 |
| 138 } | 138 } |
| 139 | 139 |
| 140 #endif | 140 #endif |
| OLD | NEW |