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

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

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 | « no previous file | Source/core/html/track/TextTrackCue.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) 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 20 matching lines...) Expand all
31 31
32 #ifndef TextTrackCue_h 32 #ifndef TextTrackCue_h
33 #define TextTrackCue_h 33 #define TextTrackCue_h
34 34
35 #include "core/events/EventTarget.h" 35 #include "core/events/EventTarget.h"
36 #include "core/html/HTMLDivElement.h" 36 #include "core/html/HTMLDivElement.h"
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class Document;
42 class ExceptionState; 41 class ExceptionState;
43 class TextTrackCue;
44
45 // ----------------------------
46
47 class TextTrackCueBox : public HTMLDivElement {
48 public:
49 static const AtomicString& textTrackCueBoxShadowPseudoId()
50 {
51 DEFINE_STATIC_LOCAL(const AtomicString, trackDisplayBoxShadowPseudoId, ( "-webkit-media-text-track-display", AtomicString::ConstructFromLiteral));
52 return trackDisplayBoxShadowPseudoId;
53 }
54
55 protected:
56 TextTrackCueBox(Document&);
57 };
58
59 // ----------------------------
60 42
61 class TextTrackCue : public RefCounted<TextTrackCue>, public EventTargetWithInli neData { 43 class TextTrackCue : public RefCounted<TextTrackCue>, public EventTargetWithInli neData {
62 REFCOUNTED_EVENT_TARGET(TextTrackCue); 44 REFCOUNTED_EVENT_TARGET(TextTrackCue);
63 public: 45 public:
64 static bool isInfiniteOrNonNumber(double value, const char* method, Exceptio nState&); 46 static bool isInfiniteOrNonNumber(double value, const char* method, Exceptio nState&);
65 47
66 static const AtomicString& cueShadowPseudoId() 48 static const AtomicString& cueShadowPseudoId()
67 { 49 {
68 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral)); 50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral));
69 return cue; 51 return cue;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 106
125 TextTrack* m_track; 107 TextTrack* m_track;
126 108
127 bool m_isActive; 109 bool m_isActive;
128 bool m_pauseOnExit; 110 bool m_pauseOnExit;
129 }; 111 };
130 112
131 } // namespace WebCore 113 } // namespace WebCore
132 114
133 #endif 115 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698