| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 TextTrackCue* getCue() const; | 59 TextTrackCue* getCue() const; |
| 60 virtual void applyCSSProperties(const IntSize& videoSize); | 60 virtual void applyCSSProperties(const IntSize& videoSize); |
| 61 | 61 |
| 62 static const AtomicString& textTrackCueBoxShadowPseudoId(); | 62 static const AtomicString& textTrackCueBoxShadowPseudoId(); |
| 63 | 63 |
| 64 protected: | 64 protected: |
| 65 TextTrackCueBox(Document*, TextTrackCue*); | 65 TextTrackCueBox(Document*, TextTrackCue*); |
| 66 | 66 |
| 67 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; | 67 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
| 68 | 68 |
| 69 TextTrackCue* m_cue; | 69 TextTrackCue* m_cue; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 // ---------------------------- | 72 // ---------------------------- |
| 73 | 73 |
| 74 class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu
blic EventTarget { | 74 class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu
blic EventTarget { |
| 75 public: | 75 public: |
| 76 static PassRefPtr<TextTrackCue> create(ScriptExecutionContext* context, doub
le start, double end, const String& content) | 76 static PassRefPtr<TextTrackCue> create(ScriptExecutionContext* context, doub
le start, double end, const String& content) |
| 77 { | 77 { |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 275 |
| 276 std::pair<float, float> m_displayPosition; | 276 std::pair<float, float> m_displayPosition; |
| 277 #if ENABLE(WEBVTT_REGIONS) | 277 #if ENABLE(WEBVTT_REGIONS) |
| 278 String m_regionId; | 278 String m_regionId; |
| 279 #endif | 279 #endif |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 } // namespace WebCore | 282 } // namespace WebCore |
| 283 | 283 |
| 284 #endif | 284 #endif |
| OLD | NEW |