OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012, 2013 Apple 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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class DocumentFragment; | 42 class DocumentFragment; |
43 class ExceptionState; | 43 class ExceptionState; |
44 class ScriptExecutionContext; | 44 class ScriptExecutionContext; |
45 class TextTrack; | 45 class TextTrack; |
46 class TextTrackCue; | 46 class TextTrackCue; |
47 | 47 |
48 // ---------------------------- | 48 // ---------------------------- |
49 | 49 |
50 class TextTrackCueBox : public HTMLDivElement { | 50 class TextTrackCueBox : public HTMLDivElement { |
51 public: | 51 public: |
52 static PassRefPtr<TextTrackCueBox> create(Document* document, TextTrackCue*
cue) | 52 static PassRefPtr<TextTrackCueBox> create(Document& document, TextTrackCue*
cue) |
53 { | 53 { |
54 return adoptRef(new TextTrackCueBox(document, cue)); | 54 return adoptRef(new TextTrackCueBox(document, cue)); |
55 } | 55 } |
56 | 56 |
57 TextTrackCue* getCue() const; | 57 TextTrackCue* getCue() const; |
58 virtual void applyCSSProperties(const IntSize& videoSize); | 58 virtual void applyCSSProperties(const IntSize& videoSize); |
59 | 59 |
60 static const AtomicString& textTrackCueBoxShadowPseudoId(); | 60 static const AtomicString& textTrackCueBoxShadowPseudoId(); |
61 | 61 |
62 protected: | 62 protected: |
63 TextTrackCueBox(Document*, TextTrackCue*); | 63 TextTrackCueBox(Document&, TextTrackCue*); |
64 | 64 |
65 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 65 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
66 | 66 |
67 TextTrackCue* m_cue; | 67 TextTrackCue* m_cue; |
68 }; | 68 }; |
69 | 69 |
70 // ---------------------------- | 70 // ---------------------------- |
71 | 71 |
72 class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu
blic EventTarget { | 72 class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu
blic EventTarget { |
73 public: | 73 public: |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 273 |
274 std::pair<float, float> m_displayPosition; | 274 std::pair<float, float> m_displayPosition; |
275 #if ENABLE(WEBVTT_REGIONS) | 275 #if ENABLE(WEBVTT_REGIONS) |
276 String m_regionId; | 276 String m_regionId; |
277 #endif | 277 #endif |
278 }; | 278 }; |
279 | 279 |
280 } // namespace WebCore | 280 } // namespace WebCore |
281 | 281 |
282 #endif | 282 #endif |
OLD | NEW |