| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef TextTrackContainer_h | 30 #ifndef TextTrackContainer_h |
| 31 #define TextTrackContainer_h | 31 #define TextTrackContainer_h |
| 32 | 32 |
| 33 #include "core/html/HTMLDivElement.h" | 33 #include "core/html/HTMLDivElement.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class HTMLMediaElement; | 37 class HTMLVideoElement; |
| 38 | 38 |
| 39 class TextTrackContainer final : public HTMLDivElement { | 39 class TextTrackContainer final : public HTMLDivElement { |
| 40 public: | 40 public: |
| 41 static PassRefPtrWillBeRawPtr<TextTrackContainer> create(Document&); | 41 static PassRefPtrWillBeRawPtr<TextTrackContainer> create(Document&); |
| 42 | 42 |
| 43 void updateDisplay(HTMLMediaElement&); | 43 void updateDisplay(HTMLVideoElement&); |
| 44 void updateSizes(HTMLMediaElement&); | 44 void updateSizes(const LayoutSize&); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 TextTrackContainer(Document&); | 47 TextTrackContainer(Document&); |
| 48 | 48 |
| 49 virtual bool isTextTrackContainer() const override { return true; } | 49 virtual bool isTextTrackContainer() const override { return true; } |
| 50 | 50 |
| 51 virtual LayoutObject* createRenderer(const LayoutStyle&) override; | 51 virtual LayoutObject* createRenderer(const LayoutStyle&) override; |
| 52 | 52 |
| 53 IntSize m_videoSize; | 53 LayoutSize m_videoSize; |
| 54 float m_fontSize; | 54 float m_fontSize; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 DEFINE_ELEMENT_TYPE_CASTS(TextTrackContainer, isTextTrackContainer()); | 57 DEFINE_ELEMENT_TYPE_CASTS(TextTrackContainer, isTextTrackContainer()); |
| 58 | 58 |
| 59 } // namespace blink | 59 } // namespace blink |
| 60 | 60 |
| 61 #endif // TextTrackContainer_h | 61 #endif // TextTrackContainer_h |
| OLD | NEW |