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

Unified Diff: Source/core/html/track/VTTRegionList.cpp

Issue 55653003: Rename TextTrackRegion/TextTrackRegionList to VTTRegion/VTTRegionList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test expectations Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/VTTRegionList.h ('k') | Source/core/html/track/VTTRegionList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/VTTRegionList.cpp
diff --git a/Source/core/html/track/TextTrackRegionList.cpp b/Source/core/html/track/VTTRegionList.cpp
similarity index 81%
rename from Source/core/html/track/TextTrackRegionList.cpp
rename to Source/core/html/track/VTTRegionList.cpp
index b03193f9b5a87f41eac2e8b4dcc3b9cb5614faf0..61d78f629f59c89065142e34b45a6436a6008b56 100644
--- a/Source/core/html/track/TextTrackRegionList.cpp
+++ b/Source/core/html/track/VTTRegionList.cpp
@@ -24,20 +24,20 @@
*/
#include "config.h"
-#include "core/html/track/TextTrackRegionList.h"
+#include "core/html/track/VTTRegionList.h"
namespace WebCore {
-TextTrackRegionList::TextTrackRegionList()
+VTTRegionList::VTTRegionList()
{
}
-unsigned long TextTrackRegionList::length() const
+unsigned long VTTRegionList::length() const
{
return m_list.size();
}
-TextTrackRegion* TextTrackRegionList::item(unsigned index) const
+VTTRegion* VTTRegionList::item(unsigned index) const
{
if (index < m_list.size())
return m_list[index].get();
@@ -45,7 +45,7 @@ TextTrackRegion* TextTrackRegionList::item(unsigned index) const
return 0;
}
-TextTrackRegion* TextTrackRegionList::getRegionById(const String& id) const
+VTTRegion* VTTRegionList::getRegionById(const String& id) const
{
if (id.isEmpty())
return 0;
@@ -58,12 +58,12 @@ TextTrackRegion* TextTrackRegionList::getRegionById(const String& id) const
return 0;
}
-void TextTrackRegionList::add(PassRefPtr<TextTrackRegion> region)
+void VTTRegionList::add(PassRefPtr<VTTRegion> region)
{
m_list.append(region);
}
-bool TextTrackRegionList::remove(TextTrackRegion* region)
+bool VTTRegionList::remove(VTTRegion* region)
{
size_t index = m_list.find(region);
if (index == kNotFound)
@@ -73,7 +73,7 @@ bool TextTrackRegionList::remove(TextTrackRegion* region)
return true;
}
-void TextTrackRegionList::clear()
+void VTTRegionList::clear()
{
m_list.clear();
}
« no previous file with comments | « Source/core/html/track/VTTRegionList.h ('k') | Source/core/html/track/VTTRegionList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698