Shaka Player Embedded
text.cc
Go to the documentation of this file.
1 // Copyright 2016 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "src/js/dom/text.h"
16 
17 #include <deque>
18 
20 #include "src/js/dom/document.h"
21 
22 namespace shaka {
23 namespace js {
24 namespace dom {
25 
26 Text::Text(RefPtr<Document> document, const std::string& data)
27  : CharacterData(TEXT_NODE, document, data) {}
28 
29 // \cond Doxygen_Skip
30 Text::~Text() {}
31 // \endcond Doxygen_Skip
32 
33 std::string Text::node_name() const {
34  return "#text";
35 }
36 
37 
39  NotImplemented("splitText");
40  NotImplemented("wholeText");
41 }
42 
43 } // namespace dom
44 } // namespace js
45 } // namespace shaka
std::string node_name() const override
Definition: text.cc:33
Text(RefPtr< Document > document, const std::string &data)
Definition: text.cc:26