| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #include "core/html/HTMLDivElement.h" | 30 #include "core/html/HTMLDivElement.h" |
| 31 #include "core/html/shadow/MediaControlElements.h" | 31 #include "core/html/shadow/MediaControlElements.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class Event; | 35 class Event; |
| 36 class MediaControlsMediaEventListener; | 36 class MediaControlsMediaEventListener; |
| 37 class MediaControlsOrientationLockDelegate; | 37 class MediaControlsOrientationLockDelegate; |
| 38 class MediaControlsWindowEventListener; | 38 class MediaControlsWindowEventListener; |
| 39 class ShadowRoot; |
| 39 | 40 |
| 40 class CORE_EXPORT MediaControls final : public HTMLDivElement { | 41 class CORE_EXPORT MediaControls final : public HTMLDivElement { |
| 41 public: | 42 public: |
| 42 static MediaControls* create(HTMLMediaElement&); | 43 static MediaControls* create(HTMLMediaElement&, ShadowRoot&); |
| 43 | 44 |
| 44 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } | 45 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } |
| 45 | 46 |
| 46 void reset(); | 47 void reset(); |
| 47 | 48 |
| 48 void show(); | 49 void show(); |
| 49 void hide(); | 50 void hide(); |
| 50 bool isVisible() const; | 51 bool isVisible() const; |
| 51 | 52 |
| 52 void beginScrubbing(); | 53 void beginScrubbing(); |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 int m_panelWidth; | 214 int m_panelWidth; |
| 214 | 215 |
| 215 bool m_keepShowingUntilTimerFires : 1; | 216 bool m_keepShowingUntilTimerFires : 1; |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 219 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
| 219 | 220 |
| 220 } // namespace blink | 221 } // namespace blink |
| 221 | 222 |
| 222 #endif | 223 #endif |
| OLD | NEW |