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

Side by Side Diff: Source/web/InbandTextTrackPrivateImpl.cpp

Issue 60203008: Remove the mode getter/setter for in-band text tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « Source/web/InbandTextTrackPrivateImpl.h ('k') | public/web/WebInbandTextTrack.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 { 42 {
43 ASSERT(track); 43 ASSERT(track);
44 track->setClient(this); 44 track->setClient(this);
45 } 45 }
46 46
47 InbandTextTrackPrivateImpl::~InbandTextTrackPrivateImpl() 47 InbandTextTrackPrivateImpl::~InbandTextTrackPrivateImpl()
48 { 48 {
49 m_track->setClient(0); 49 m_track->setClient(0);
50 } 50 }
51 51
52 void InbandTextTrackPrivateImpl::setMode(Mode mode)
53 {
54 m_track->setMode(static_cast<WebInbandTextTrack::Mode>(mode));
55 }
56
57 WebCore::InbandTextTrackPrivate::Mode InbandTextTrackPrivateImpl::mode() const
58 {
59 return static_cast<WebCore::InbandTextTrackPrivate::Mode>(m_track->mode());
60 }
61
62 WebCore::InbandTextTrackPrivate::Kind InbandTextTrackPrivateImpl::kind() const 52 WebCore::InbandTextTrackPrivate::Kind InbandTextTrackPrivateImpl::kind() const
63 { 53 {
64 return static_cast<WebCore::InbandTextTrackPrivate::Kind>(m_track->kind()); 54 return static_cast<WebCore::InbandTextTrackPrivate::Kind>(m_track->kind());
65 } 55 }
66 56
67 AtomicString InbandTextTrackPrivateImpl::label() const 57 AtomicString InbandTextTrackPrivateImpl::label() const
68 { 58 {
69 return m_track->label(); 59 return m_track->label();
70 } 60 }
71 61
(...skipping 11 matching lines...) Expand all
83 double start, 73 double start,
84 double end, 74 double end,
85 const WebString& id, 75 const WebString& id,
86 const WebString& content, 76 const WebString& content,
87 const WebString& settings) 77 const WebString& settings)
88 { 78 {
89 client()->addWebVTTCue(this, start, end, id, content, settings); 79 client()->addWebVTTCue(this, start, end, id, content, settings);
90 } 80 }
91 81
92 } // namespace WebKit 82 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/InbandTextTrackPrivateImpl.h ('k') | public/web/WebInbandTextTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698