Index: Source/core/html/track/TextTrackContainer.h |
diff --git a/Source/platform/audio/AudioIOCallback.h b/Source/core/html/track/TextTrackContainer.h |
similarity index 68% |
copy from Source/platform/audio/AudioIOCallback.h |
copy to Source/core/html/track/TextTrackContainer.h |
index fa59684f66c231fd34a3636697bb88941bb62862..8162358f486400d2c09d5702b86be334b5495f22 100644 |
--- a/Source/platform/audio/AudioIOCallback.h |
+++ b/Source/core/html/track/TextTrackContainer.h |
@@ -1,4 +1,5 @@ |
/* |
+ * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
* Copyright (C) 2012 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
@@ -26,23 +27,35 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef AudioIOCallback_h |
-#define AudioIOCallback_h |
+#ifndef TextTrackContainer_h |
+#define TextTrackContainer_h |
+ |
+#include "core/html/HTMLDivElement.h" |
namespace blink { |
-class AudioBus; |
+class HTMLMediaElement; |
-// Abstract base-class for isochronous audio I/O client. |
-class AudioIOCallback { |
+class TextTrackContainer final : public HTMLDivElement { |
philipj_slow
2015/02/26 09:51:52
I'm not sure if this actually needs to be an HTMLD
|
public: |
- // render() is called periodically to get the next render quantum of audio into destinationBus. |
- // Optional audio input is given in sourceBus (if it's not 0). |
- virtual void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t framesToProcess) = 0; |
+ static PassRefPtrWillBeRawPtr<TextTrackContainer> create(Document&); |
+ |
+ void updateDisplay(HTMLMediaElement&); |
+ void updateSizes(HTMLMediaElement&); |
+ |
+private: |
+ TextTrackContainer(Document&); |
- virtual ~AudioIOCallback() { } |
+ virtual bool isTextTrackContainer() const override { return true; } |
+ |
+ virtual LayoutObject* createRenderer(const LayoutStyle&) override; |
+ |
+ IntRect m_videoDisplaySize; |
fs
2015/02/26 12:30:51
Could you make this an IntSize while we're shuffli
philipj_slow
2015/02/27 07:13:52
Done.
|
+ float m_fontSize; |
}; |
+DEFINE_ELEMENT_TYPE_CASTS(TextTrackContainer, isTextTrackContainer()); |
+ |
} // namespace blink |
-#endif // AudioIOCallback_h |
+#endif // TextTrackContainer_h |