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

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

Issue 102073002: Remove TextTrackCueBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: inline pseudo id Created 7 years 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/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTCue.h » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 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 24 matching lines...) Expand all
35 #include "bindings/v8/ExceptionMessages.h" 35 #include "bindings/v8/ExceptionMessages.h"
36 #include "bindings/v8/ExceptionStatePlaceholder.h" 36 #include "bindings/v8/ExceptionStatePlaceholder.h"
37 #include "core/events/Event.h" 37 #include "core/events/Event.h"
38 #include "core/html/track/TextTrack.h" 38 #include "core/html/track/TextTrack.h"
39 #include "core/html/track/TextTrackCueList.h" 39 #include "core/html/track/TextTrackCueList.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 static const int invalidCueIndex = -1; 43 static const int invalidCueIndex = -1;
44 44
45 // ----------------------------
46
47 TextTrackCueBox::TextTrackCueBox(Document& document)
48 : HTMLDivElement(document)
49 {
50 }
51
52 // ----------------------------
53
54 bool TextTrackCue::isInfiniteOrNonNumber(double value, const char* method, Excep tionState& exceptionState) 45 bool TextTrackCue::isInfiniteOrNonNumber(double value, const char* method, Excep tionState& exceptionState)
55 { 46 {
56 if (!std::isfinite(value)) { 47 if (!std::isfinite(value)) {
57 exceptionState.throwTypeError(ExceptionMessages::failedToSet(method, "Te xtTrackCue", ExceptionMessages::notAFiniteNumber(value))); 48 exceptionState.throwTypeError(ExceptionMessages::failedToSet(method, "Te xtTrackCue", ExceptionMessages::notAFiniteNumber(value)));
58 return true; 49 return true;
59 } 50 }
60 return false; 51 return false;
61 } 52 }
62 53
63 TextTrackCue::TextTrackCue(double start, double end) 54 TextTrackCue::TextTrackCue(double start, double end)
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if (!active) 173 if (!active)
183 removeDisplayTree(); 174 removeDisplayTree();
184 } 175 }
185 176
186 const AtomicString& TextTrackCue::interfaceName() const 177 const AtomicString& TextTrackCue::interfaceName() const
187 { 178 {
188 return EventTargetNames::TextTrackCue; 179 return EventTargetNames::TextTrackCue;
189 } 180 }
190 181
191 } // namespace WebCore 182 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698