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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void hideMediaControlsTimerFired(Timer<MediaControls>*); | 94 void hideMediaControlsTimerFired(Timer<MediaControls>*); |
95 void startHideMediaControlsTimer(); | 95 void startHideMediaControlsTimer(); |
96 void stopHideMediaControlsTimer(); | 96 void stopHideMediaControlsTimer(); |
97 void resetHideMediaControlsTimer(); | 97 void resetHideMediaControlsTimer(); |
98 | 98 |
99 // Attempts to show the overlay cast button. If it is covered by another | 99 // Attempts to show the overlay cast button. If it is covered by another |
100 // element in the page, it will be hidden. | 100 // element in the page, it will be hidden. |
101 void tryShowOverlayCastButton(); | 101 void tryShowOverlayCastButton(); |
102 | 102 |
103 void createTextTrackDisplay(); | 103 void createTextTrackDisplay(); |
104 void showTextTrackDisplay(); | |
105 void hideTextTrackDisplay(); | |
106 | 104 |
107 // Node | 105 // Node |
108 virtual bool isMediaControls() const override { return true; } | 106 virtual bool isMediaControls() const override { return true; } |
109 virtual bool willRespondToMouseMoveEvents() override { return true; } | 107 virtual bool willRespondToMouseMoveEvents() override { return true; } |
110 virtual void defaultEventHandler(Event*) override; | 108 virtual void defaultEventHandler(Event*) override; |
111 bool containsRelatedTarget(Event*); | 109 bool containsRelatedTarget(Event*); |
112 | 110 |
113 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 111 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
114 | 112 |
115 // Container for the media control elements. | 113 // Container for the media control elements. |
(...skipping 21 matching lines...) Expand all Loading... |
137 unsigned m_hideTimerBehaviorFlags; | 135 unsigned m_hideTimerBehaviorFlags; |
138 bool m_isMouseOverControls : 1; | 136 bool m_isMouseOverControls : 1; |
139 bool m_isPausedForScrubbing : 1; | 137 bool m_isPausedForScrubbing : 1; |
140 }; | 138 }; |
141 | 139 |
142 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 140 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
143 | 141 |
144 } | 142 } |
145 | 143 |
146 #endif | 144 #endif |
OLD | NEW |