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

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

Issue 26878003: Reduce repetitive EventTarget subclassing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit Created 7 years, 2 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/TextTrackCue.h ('k') | Source/core/html/track/TextTrackList.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 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 const AtomicString& TextTrackCue::interfaceName() const 1206 const AtomicString& TextTrackCue::interfaceName() const
1207 { 1207 {
1208 return eventNames().interfaceForTextTrackCue; 1208 return eventNames().interfaceForTextTrackCue;
1209 } 1209 }
1210 1210
1211 ScriptExecutionContext* TextTrackCue::scriptExecutionContext() const 1211 ScriptExecutionContext* TextTrackCue::scriptExecutionContext() const
1212 { 1212 {
1213 return m_scriptExecutionContext; 1213 return m_scriptExecutionContext;
1214 } 1214 }
1215 1215
1216 EventTargetData* TextTrackCue::eventTargetData()
1217 {
1218 return &m_eventTargetData;
1219 }
1220
1221 EventTargetData* TextTrackCue::ensureEventTargetData()
1222 {
1223 return &m_eventTargetData;
1224 }
1225
1226 bool TextTrackCue::operator==(const TextTrackCue& cue) const 1216 bool TextTrackCue::operator==(const TextTrackCue& cue) const
1227 { 1217 {
1228 if (cueType() != cue.cueType()) 1218 if (cueType() != cue.cueType())
1229 return false; 1219 return false;
1230 1220
1231 if (m_endTime != cue.endTime()) 1221 if (m_endTime != cue.endTime())
1232 return false; 1222 return false;
1233 if (m_startTime != cue.startTime()) 1223 if (m_startTime != cue.startTime())
1234 return false; 1224 return false;
1235 if (m_content != cue.text()) 1225 if (m_content != cue.text())
1236 return false; 1226 return false;
1237 if (m_settings != cue.cueSettings()) 1227 if (m_settings != cue.cueSettings())
1238 return false; 1228 return false;
1239 if (m_id != cue.id()) 1229 if (m_id != cue.id())
1240 return false; 1230 return false;
1241 if (m_textPosition != cue.position()) 1231 if (m_textPosition != cue.position())
1242 return false; 1232 return false;
1243 if (m_linePosition != cue.line()) 1233 if (m_linePosition != cue.line())
1244 return false; 1234 return false;
1245 if (m_cueSize != cue.size()) 1235 if (m_cueSize != cue.size())
1246 return false; 1236 return false;
1247 if (align() != cue.align()) 1237 if (align() != cue.align())
1248 return false; 1238 return false;
1249 1239
1250 return true; 1240 return true;
1251 } 1241 }
1252 1242
1253 } // namespace WebCore 1243 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/TextTrackList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698