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

Side by Side Diff: third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 bool LoadableTextTrack::isDefault() const 45 bool LoadableTextTrack::isDefault() const
46 { 46 {
47 return m_trackElement->fastHasAttribute(HTMLNames::defaultAttr); 47 return m_trackElement->fastHasAttribute(HTMLNames::defaultAttr);
48 } 48 }
49 49
50 void LoadableTextTrack::setMode(const AtomicString& mode) 50 void LoadableTextTrack::setMode(const AtomicString& mode)
51 { 51 {
52 TextTrack::setMode(mode); 52 TextTrack::setMode(mode);
53 if (m_trackElement->getReadyState() == HTMLTrackElement::NONE) 53 if (m_trackElement->getReadyState() == HTMLTrackElement::kNone)
54 m_trackElement->scheduleLoad(); 54 m_trackElement->scheduleLoad();
55 } 55 }
56 56
57 void LoadableTextTrack::addRegions(const HeapVector<Member<VTTRegion>>& newRegio ns) 57 void LoadableTextTrack::addRegions(const HeapVector<Member<VTTRegion>>& newRegio ns)
58 { 58 {
59 for (size_t i = 0; i < newRegions.size(); ++i) { 59 for (size_t i = 0; i < newRegions.size(); ++i) {
60 newRegions[i]->setTrack(this); 60 newRegions[i]->setTrack(this);
61 regions()->add(newRegions[i]); 61 regions()->add(newRegions[i]);
62 } 62 }
63 } 63 }
(...skipping 10 matching lines...) Expand all
74 return index; 74 return index;
75 } 75 }
76 76
77 DEFINE_TRACE(LoadableTextTrack) 77 DEFINE_TRACE(LoadableTextTrack)
78 { 78 {
79 visitor->trace(m_trackElement); 79 visitor->trace(m_trackElement);
80 TextTrack::trace(visitor); 80 TextTrack::trace(visitor);
81 } 81 }
82 82
83 } // namespace blink 83 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698