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

Side by Side Diff: media/base/text_track_config.h

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix compile errors 11/21 #6 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 unified diff | Download patch
« no previous file with comments | « media/base/text_track.h ('k') | media/base/text_track_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_TEXT_TRACK_CONFIG_H_
6 #define MEDIA_BASE_TEXT_TRACK_CONFIG_H_
7
8 #include <string>
9
10 #include "media/base/media_export.h"
11
12 namespace media {
13
14 // Specifies the varieties of text tracks.
15 enum TextKind {
16 kTextSubtitles,
17 kTextCaptions,
18 kTextDescriptions,
19 kTextMetadata,
20 kTextNone
21 };
22
23 class MEDIA_EXPORT TextTrackConfig {
24 public:
25 TextTrackConfig();
26 TextTrackConfig(TextKind kind,
27 const std::string& label,
28 const std::string& language);
29
30 // Returns true if all fields in |config| match this config.
31 bool Matches(const TextTrackConfig& config) const;
32
33 TextKind kind() const { return kind_; }
34 const std::string& label() const { return label_; }
35 const std::string& language() const { return language_; }
36
37 private:
38 TextKind kind_;
39 std::string label_;
40 std::string language_;
41 };
42
43 } // namespace media
44
45 #endif // MEDIA_BASE_TEXT_TRACK_H_
OLDNEW
« no previous file with comments | « media/base/text_track.h ('k') | media/base/text_track_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698