Skip to content

Commit

Permalink
Bug 1263802 - Support communication between B2G and TV daemon process…
Browse files Browse the repository at this point in the history
…. Part 2 - Implement TVGonkService and add DTV service. r=tzimmerman

MozReview-Commit-ID: 73BwBdft9Pi
  • Loading branch information
GuanWenChen committed May 25, 2016
1 parent 39e6ae3 commit 4fdf45d
Show file tree
Hide file tree
Showing 12 changed files with 2,218 additions and 16 deletions.
12 changes: 12 additions & 0 deletions dom/tv/TVUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ ToTVChannelType(const nsAString& aStr)
return TVChannelType::EndGuard_;
}

inline nsString
ToTVChannelTypeStr(const TVChannelType aChannelType)
{
MOZ_ASSERT(static_cast<uint32_t>(aChannelType) <
ArrayLength(TVChannelTypeValues::strings));

nsString str;
str.AssignASCII(
TVChannelTypeValues::strings[static_cast<uint32_t>(aChannelType)].value);
return str;
}

} // namespace dom
} // namespace mozilla

Expand Down
Loading

0 comments on commit 4fdf45d

Please sign in to comment.