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 27 matching lines...) Expand all Loading... |
38 class MediaControlsWindowEventListener; | 38 class MediaControlsWindowEventListener; |
39 class ShadowRoot; | 39 class ShadowRoot; |
40 | 40 |
41 class CORE_EXPORT MediaControls final : public HTMLDivElement { | 41 class CORE_EXPORT MediaControls final : public HTMLDivElement { |
42 public: | 42 public: |
43 static MediaControls* create(HTMLMediaElement&, ShadowRoot&); | 43 static MediaControls* create(HTMLMediaElement&, ShadowRoot&); |
44 | 44 |
45 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } | 45 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } |
46 | 46 |
47 void reset(); | 47 void reset(); |
| 48 void onControlsListUpdated(); |
48 | 49 |
49 void show(); | 50 void show(); |
50 void hide(); | 51 void hide(); |
51 bool isVisible() const; | 52 bool isVisible() const; |
52 | 53 |
53 void beginScrubbing(); | 54 void beginScrubbing(); |
54 void endScrubbing(); | 55 void endScrubbing(); |
55 | 56 |
56 void updateCurrentTimeDisplay(); | 57 void updateCurrentTimeDisplay(); |
57 | 58 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 int m_panelWidth; | 224 int m_panelWidth; |
224 | 225 |
225 bool m_keepShowingUntilTimerFires : 1; | 226 bool m_keepShowingUntilTimerFires : 1; |
226 }; | 227 }; |
227 | 228 |
228 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 229 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
229 | 230 |
230 } // namespace blink | 231 } // namespace blink |
231 | 232 |
232 #endif | 233 #endif |
OLD | NEW |