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

Side by Side Diff: include/xml/SkDOM.h

Issue 2154733003: Remove SkDOM::build(const char doc[], size_t len) (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 5 months 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 | « no previous file | src/xml/SkDOM.cpp » ('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 /* 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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/xml/SkDOM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698