Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: Source/core/html/track/InbandTextTrack.cpp

Issue 352603002: Remove the unused Document& argument to the TextTrack constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/InbandTextTrack.h ('k') | Source/core/html/track/LoadableTextTrack.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
32 #include "platform/Logging.h" 32 #include "platform/Logging.h"
33 #include "public/platform/WebInbandTextTrack.h" 33 #include "public/platform/WebInbandTextTrack.h"
34 #include "public/platform/WebString.h" 34 #include "public/platform/WebString.h"
35 #include <math.h> 35 #include <math.h>
36 36
37 using blink::WebInbandTextTrack; 37 using blink::WebInbandTextTrack;
38 using blink::WebString; 38 using blink::WebString;
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 PassRefPtrWillBeRawPtr<InbandTextTrack> InbandTextTrack::create(Document& docume nt, WebInbandTextTrack* webTrack) 42 PassRefPtrWillBeRawPtr<InbandTextTrack> InbandTextTrack::create(WebInbandTextTra ck* webTrack)
43 { 43 {
44 return adoptRefWillBeRefCountedGarbageCollected(new InbandTextTrack(document , webTrack)); 44 return adoptRefWillBeRefCountedGarbageCollected(new InbandTextTrack(webTrack ));
45 } 45 }
46 46
47 InbandTextTrack::InbandTextTrack(Document& document, WebInbandTextTrack* webTrac k) 47 InbandTextTrack::InbandTextTrack(WebInbandTextTrack* webTrack)
48 : TextTrack(document, emptyAtom, webTrack->label(), webTrack->language(), we bTrack->id(), InBand) 48 : TextTrack(emptyAtom, webTrack->label(), webTrack->language(), webTrack->id (), InBand)
49 , m_webTrack(webTrack) 49 , m_webTrack(webTrack)
50 { 50 {
51 m_webTrack->setClient(this); 51 m_webTrack->setClient(this);
52 52
53 switch (m_webTrack->kind()) { 53 switch (m_webTrack->kind()) {
54 case WebInbandTextTrack::KindSubtitles: 54 case WebInbandTextTrack::KindSubtitles:
55 setKind(TextTrack::subtitlesKeyword()); 55 setKind(TextTrack::subtitlesKeyword());
56 break; 56 break;
57 case WebInbandTextTrack::KindCaptions: 57 case WebInbandTextTrack::KindCaptions:
58 setKind(TextTrack::captionsKeyword()); 58 setKind(TextTrack::captionsKeyword());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 { 105 {
106 HTMLMediaElement* owner = mediaElement(); 106 HTMLMediaElement* owner = mediaElement();
107 ASSERT(owner); 107 ASSERT(owner);
108 RefPtrWillBeRawPtr<VTTCue> cue = VTTCue::create(owner->document(), start, en d, content); 108 RefPtrWillBeRawPtr<VTTCue> cue = VTTCue::create(owner->document(), start, en d, content);
109 cue->setId(id); 109 cue->setId(id);
110 cue->parseSettings(settings); 110 cue->parseSettings(settings);
111 addCue(cue); 111 addCue(cue);
112 } 112 }
113 113
114 } // namespace WebCore 114 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/InbandTextTrack.h ('k') | Source/core/html/track/LoadableTextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698