OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. 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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/html/track/InbandTextTrack.h" | 27 #include "core/html/track/InbandTextTrack.h" |
28 | 28 |
29 #include "bindings/v8/ExceptionStatePlaceholder.h" | 29 #include "bindings/v8/ExceptionStatePlaceholder.h" |
30 #include "core/html/track/vtt/VTTCue.h" | 30 #include "core/html/track/vtt/VTTCue.h" |
31 #include "platform/Logging.h" | 31 #include "platform/Logging.h" |
32 #include "public/platform/WebInbandTextTrack.h" | 32 #include "public/platform/WebInbandTextTrack.h" |
33 #include "public/platform/WebString.h" | 33 #include "public/platform/WebString.h" |
34 #include "wtf/UnusedParam.h" | |
35 #include <math.h> | 34 #include <math.h> |
36 | 35 |
37 using blink::WebInbandTextTrack; | 36 using blink::WebInbandTextTrack; |
38 using blink::WebString; | 37 using blink::WebString; |
39 | 38 |
40 namespace WebCore { | 39 namespace WebCore { |
41 | 40 |
42 PassRefPtr<InbandTextTrack> InbandTextTrack::create(Document& document, TextTrac
kClient* client, WebInbandTextTrack* webTrack) | 41 PassRefPtr<InbandTextTrack> InbandTextTrack::create(Document& document, TextTrac
kClient* client, WebInbandTextTrack* webTrack) |
43 { | 42 { |
44 return adoptRef(new InbandTextTrack(document, client, webTrack)); | 43 return adoptRef(new InbandTextTrack(document, client, webTrack)); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 94 |
96 void InbandTextTrack::addWebVTTCue(double start, double end, const WebString& id
, const WebString& content, const WebString& settings) | 95 void InbandTextTrack::addWebVTTCue(double start, double end, const WebString& id
, const WebString& content, const WebString& settings) |
97 { | 96 { |
98 RefPtr<VTTCue> cue = VTTCue::create(document(), start, end, content); | 97 RefPtr<VTTCue> cue = VTTCue::create(document(), start, end, content); |
99 cue->setId(id); | 98 cue->setId(id); |
100 cue->parseSettings(settings); | 99 cue->parseSettings(settings); |
101 addCue(cue); | 100 addCue(cue); |
102 } | 101 } |
103 | 102 |
104 } // namespace WebCore | 103 } // namespace WebCore |
OLD | NEW |