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

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

Issue 224833002: Implement DataCue interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove text attribute 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
« no previous file with comments | « Source/core/html/track/DataCue.idl ('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) 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 int cueIndex(); 73 int cueIndex();
74 void invalidateCueIndex(); 74 void invalidateCueIndex();
75 75
76 using EventTarget::dispatchEvent; 76 using EventTarget::dispatchEvent;
77 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; 77 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE;
78 78
79 bool isActive(); 79 bool isActive();
80 void setIsActive(bool); 80 void setIsActive(bool);
81 81
82 virtual void updateDisplay(const IntSize& videoSize, HTMLDivElement& contain er) = 0; 82 virtual void updateDisplay(const IntSize& videoSize, HTMLDivElement& contain er) { };
83 83
84 // FIXME: Consider refactoring to eliminate or merge the following three mem bers. 84 // FIXME: Consider refactoring to eliminate or merge the following three mem bers.
85 // https://code.google.com/p/chromium/issues/detail?id=322434 85 // https://code.google.com/p/chromium/issues/detail?id=322434
86 virtual void updateDisplayTree(double movieTime) = 0; 86 virtual void updateDisplayTree(double movieTime) { };
87 virtual void removeDisplayTree() = 0; 87 virtual void removeDisplayTree() { };
88 virtual void notifyRegionWhenRemovingDisplayTree(bool notifyRegion) = 0; 88 virtual void notifyRegionWhenRemovingDisplayTree(bool notifyRegion) { };
89
90 enum CueType { WebVTT, Data };
91 virtual CueType cueType() const = 0;
89 92
90 virtual const AtomicString& interfaceName() const OVERRIDE; 93 virtual const AtomicString& interfaceName() const OVERRIDE;
91 94
92 #ifndef NDEBUG 95 #ifndef NDEBUG
93 virtual String toString() const = 0; 96 virtual String toString() const = 0;
94 #endif 97 #endif
95 98
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter);
97 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit);
98 101
(...skipping 13 matching lines...) Expand all
112 115
113 RawPtrWillBeMember<TextTrack> m_track; 116 RawPtrWillBeMember<TextTrack> m_track;
114 117
115 bool m_isActive : 1; 118 bool m_isActive : 1;
116 bool m_pauseOnExit : 1; 119 bool m_pauseOnExit : 1;
117 }; 120 };
118 121
119 } // namespace WebCore 122 } // namespace WebCore
120 123
121 #endif 124 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/DataCue.idl ('k') | Source/core/html/track/vtt/VTTCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698