OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkDOM_DEFINED | 10 #ifndef SkDOM_DEFINED |
(...skipping 14 matching lines...) Expand all Loading... |
25 class SK_API SkDOM : public SkNoncopyable { | 25 class SK_API SkDOM : public SkNoncopyable { |
26 public: | 26 public: |
27 SkDOM(); | 27 SkDOM(); |
28 ~SkDOM(); | 28 ~SkDOM(); |
29 | 29 |
30 typedef SkDOMNode Node; | 30 typedef SkDOMNode Node; |
31 typedef SkDOMAttr Attr; | 31 typedef SkDOMAttr Attr; |
32 | 32 |
33 /** Returns null on failure | 33 /** Returns null on failure |
34 */ | 34 */ |
35 const Node* build(const char doc[], size_t len); | |
36 const Node* build(SkStream&); | 35 const Node* build(SkStream&); |
37 const Node* copy(const SkDOM& dom, const Node* node); | 36 const Node* copy(const SkDOM& dom, const Node* node); |
38 | 37 |
39 const Node* getRootNode() const; | 38 const Node* getRootNode() const; |
40 | 39 |
41 SkXMLParser* beginParsing(); | 40 SkXMLParser* beginParsing(); |
42 const Node* finishParsing(); | 41 const Node* finishParsing(); |
43 | 42 |
44 enum Type { | 43 enum Type { |
45 kElement_Type, | 44 kElement_Type, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 90 |
92 private: | 91 private: |
93 SkChunkAlloc fAlloc; | 92 SkChunkAlloc fAlloc; |
94 Node* fRoot; | 93 Node* fRoot; |
95 SkAutoTDelete<SkDOMParser> fParser; | 94 SkAutoTDelete<SkDOMParser> fParser; |
96 | 95 |
97 typedef SkNoncopyable INHERITED; | 96 typedef SkNoncopyable INHERITED; |
98 }; | 97 }; |
99 | 98 |
100 #endif | 99 #endif |
OLD | NEW |