| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void createTextTrackDisplay(); | 103 void createTextTrackDisplay(); |
| 104 void showTextTrackDisplay(); | 104 void showTextTrackDisplay(); |
| 105 void hideTextTrackDisplay(); | 105 void hideTextTrackDisplay(); |
| 106 | 106 |
| 107 // Node | 107 // Node |
| 108 virtual bool isMediaControls() const override { return true; } | 108 virtual bool isMediaControls() const override { return true; } |
| 109 virtual bool willRespondToMouseMoveEvents() override { return true; } | 109 virtual bool willRespondToMouseMoveEvents() override { return true; } |
| 110 virtual void defaultEventHandler(Event*) override; | 110 virtual void defaultEventHandler(Event*) override; |
| 111 bool containsRelatedTarget(Event*); | 111 bool containsRelatedTarget(Event*); |
| 112 | 112 |
| 113 bool isInactiveElement(Node*) const; |
| 114 |
| 113 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; | 115 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; |
| 114 | 116 |
| 115 // Container for the media control elements. | 117 // Container for the media control elements. |
| 116 RawPtrWillBeMember<MediaControlPanelElement> m_panel; | 118 RawPtrWillBeMember<MediaControlPanelElement> m_panel; |
| 117 | 119 |
| 118 // Container for the text track cues. | 120 // Container for the text track cues. |
| 119 RawPtrWillBeMember<MediaControlTextTrackContainerElement> m_textDisplayConta
iner; | 121 RawPtrWillBeMember<MediaControlTextTrackContainerElement> m_textDisplayConta
iner; |
| 120 | 122 |
| 121 // Media control elements. | 123 // Media control elements. |
| 122 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton
; | 124 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton
; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 137 bool m_isMouseOverControls : 1; | 139 bool m_isMouseOverControls : 1; |
| 138 bool m_isPausedForScrubbing : 1; | 140 bool m_isPausedForScrubbing : 1; |
| 139 bool m_wasLastEventTouch : 1; | 141 bool m_wasLastEventTouch : 1; |
| 140 }; | 142 }; |
| 141 | 143 |
| 142 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 144 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
| 143 | 145 |
| 144 } | 146 } |
| 145 | 147 |
| 146 #endif | 148 #endif |
| OLD | NEW |