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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 protected: | 61 protected: |
62 TextTrackCueBox(Document*, TextTrackCue*); | 62 TextTrackCueBox(Document*, TextTrackCue*); |
63 | 63 |
64 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 64 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
65 | 65 |
66 TextTrackCue* m_cue; | 66 TextTrackCue* m_cue; |
67 }; | 67 }; |
68 | 68 |
69 // ---------------------------- | 69 // ---------------------------- |
70 | 70 |
71 class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu
blic EventTarget { | 71 class TextTrackCue : public EventTarget, public RefCounted<TextTrackCue>, publi
c ScriptWrappable { |
72 public: | 72 public: |
73 static PassRefPtr<TextTrackCue> create(ScriptExecutionContext* context, doub
le start, double end, const String& content) | 73 static PassRefPtr<TextTrackCue> create(ScriptExecutionContext* context, doub
le start, double end, const String& content) |
74 { | 74 { |
75 return adoptRef(new TextTrackCue(context, start, end, content)); | 75 return adoptRef(new TextTrackCue(context, start, end, content)); |
76 } | 76 } |
77 | 77 |
78 static const AtomicString& cueShadowPseudoId() | 78 static const AtomicString& cueShadowPseudoId() |
79 { | 79 { |
80 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const
ructFromLiteral)); | 80 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const
ructFromLiteral)); |
81 return cue; | 81 return cue; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 std::pair<float, float> m_displayPosition; | 273 std::pair<float, float> m_displayPosition; |
274 #if ENABLE(WEBVTT_REGIONS) | 274 #if ENABLE(WEBVTT_REGIONS) |
275 String m_regionId; | 275 String m_regionId; |
276 #endif | 276 #endif |
277 }; | 277 }; |
278 | 278 |
279 } // namespace WebCore | 279 } // namespace WebCore |
280 | 280 |
281 #endif | 281 #endif |
OLD | NEW |