| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (c) 2013, Opera Software ASA. All rights reserved. |    2  * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 
|    3  * |    3  * | 
|    4  * Redistribution and use in source and binary forms, with or without |    4  * Redistribution and use in source and binary forms, with or without | 
|    5  * modification, are permitted provided that the following conditions |    5  * modification, are permitted provided that the following conditions | 
|    6  * are met: |    6  * are met: | 
|    7  * 1. Redistributions of source code must retain the above copyright |    7  * 1. Redistributions of source code must retain the above copyright | 
|    8  *    notice, this list of conditions and the following disclaimer. |    8  *    notice, this list of conditions and the following disclaimer. | 
|    9  * 2. Redistributions in binary form must reproduce the above copyright |    9  * 2. Redistributions in binary form must reproduce the above copyright | 
|   10  *    notice, this list of conditions and the following disclaimer in the |   10  *    notice, this list of conditions and the following disclaimer in the | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   56 private: |   56 private: | 
|   57     VTTCueBox(Document&, VTTCue*); |   57     VTTCueBox(Document&, VTTCue*); | 
|   58  |   58  | 
|   59     virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |   59     virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 
|   60  |   60  | 
|   61     RawPtrWillBeMember<VTTCue> m_cue; |   61     RawPtrWillBeMember<VTTCue> m_cue; | 
|   62 }; |   62 }; | 
|   63  |   63  | 
|   64 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { |   64 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { | 
|   65 public: |   65 public: | 
|   66     static PassRefPtrWillBeRawPtr<VTTCue> create(Document& document, double star
     tTime, double endTime, const String& text) |   66     static PassRefPtrWillBeRawPtr<VTTCue> create(ExecutionContext*, double start
     Time, double endTime, const String& text); | 
|   67     { |  | 
|   68         return adoptRefWillBeRefCountedGarbageCollected(new VTTCue(document, sta
     rtTime, endTime, text)); |  | 
|   69     } |  | 
|   70  |   67  | 
|   71     virtual ~VTTCue(); |   68     virtual ~VTTCue(); | 
|   72  |   69  | 
|   73     const String& vertical() const; |   70     const String& vertical() const; | 
|   74     void setVertical(const String&); |   71     void setVertical(const String&); | 
|   75  |   72  | 
|   76     bool snapToLines() const { return m_snapToLines; } |   73     bool snapToLines() const { return m_snapToLines; } | 
|   77     void setSnapToLines(bool); |   74     void setSnapToLines(bool); | 
|   78  |   75  | 
|   79     int line() const { return m_linePosition; } |   76     int line() const { return m_linePosition; } | 
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  191     bool m_displayTreeShouldChange : 1; |  188     bool m_displayTreeShouldChange : 1; | 
|  192     bool m_notifyRegion : 1; |  189     bool m_notifyRegion : 1; | 
|  193 }; |  190 }; | 
|  194  |  191  | 
|  195 // VTTCue is currently the only TextTrackCue subclass. |  192 // VTTCue is currently the only TextTrackCue subclass. | 
|  196 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |  193 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 
|  197  |  194  | 
|  198 } // namespace WebCore |  195 } // namespace WebCore | 
|  199  |  196  | 
|  200 #endif |  197 #endif | 
| OLD | NEW |