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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Node override. | 47 // Node override. |
48 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; | 48 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; |
49 void removedFrom(ContainerNode*) override; | 49 void removedFrom(ContainerNode*) override; |
50 | 50 |
51 void reset(); | 51 void reset(); |
52 void onControlsListUpdated(); | 52 void onControlsListUpdated(); |
53 | 53 |
54 void show(); | 54 void show(); |
55 void hide(); | 55 void hide(); |
56 bool isVisible() const; | 56 bool isVisible() const; |
| 57 void makeOpaque(); |
| 58 void makeTransparent(); |
57 | 59 |
58 void beginScrubbing(); | 60 void beginScrubbing(); |
59 void endScrubbing(); | 61 void endScrubbing(); |
60 | 62 |
61 void updateCurrentTimeDisplay(); | 63 void updateCurrentTimeDisplay(); |
62 | 64 |
63 void toggleTextTrackList(); | 65 void toggleTextTrackList(); |
64 void showTextTrackAtIndex(unsigned indexToEnable); | 66 void showTextTrackAtIndex(unsigned indexToEnable); |
65 void disableShowingTextTracks(); | 67 void disableShowingTextTracks(); |
66 | 68 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 class BatchedControlUpdate; | 134 class BatchedControlUpdate; |
133 class MediaControlsResizeObserverCallback; | 135 class MediaControlsResizeObserverCallback; |
134 | 136 |
135 // Notify us that our controls enclosure has changed size. | 137 // Notify us that our controls enclosure has changed size. |
136 void notifyElementSizeChanged(ClientRect* newSize); | 138 void notifyElementSizeChanged(ClientRect* newSize); |
137 | 139 |
138 explicit MediaControls(HTMLMediaElement&); | 140 explicit MediaControls(HTMLMediaElement&); |
139 | 141 |
140 void initializeControls(); | 142 void initializeControls(); |
141 | 143 |
142 void makeOpaque(); | |
143 void makeTransparent(); | |
144 | |
145 void updatePlayState(); | 144 void updatePlayState(); |
146 | 145 |
147 enum HideBehaviorFlags { | 146 enum HideBehaviorFlags { |
148 IgnoreNone = 0, | 147 IgnoreNone = 0, |
149 IgnoreVideoHover = 1 << 0, | 148 IgnoreVideoHover = 1 << 0, |
150 IgnoreFocus = 1 << 1, | 149 IgnoreFocus = 1 << 1, |
151 IgnoreControlsHover = 1 << 2, | 150 IgnoreControlsHover = 1 << 2, |
152 IgnoreWaitForTimer = 1 << 3, | 151 IgnoreWaitForTimer = 1 << 3, |
153 }; | 152 }; |
154 | 153 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 IntSize m_size; | 232 IntSize m_size; |
234 | 233 |
235 bool m_keepShowingUntilTimerFires : 1; | 234 bool m_keepShowingUntilTimerFires : 1; |
236 }; | 235 }; |
237 | 236 |
238 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 237 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
239 | 238 |
240 } // namespace blink | 239 } // namespace blink |
241 | 240 |
242 #endif | 241 #endif |
OLD | NEW |