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

Side by Side Diff: Source/core/dom/CharacterData.h

Issue 1074703002: Componentization: make core/dom visible for blink_web and blink_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « Source/core/dom/CSSSelectorWatch.h ('k') | Source/core/dom/ClientRectList.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 * 20 *
21 */ 21 */
22 22
23 #ifndef CharacterData_h 23 #ifndef CharacterData_h
24 #define CharacterData_h 24 #define CharacterData_h
25 25
26 #include "core/CoreExport.h"
26 #include "core/dom/Node.h" 27 #include "core/dom/Node.h"
27 #include "wtf/text/WTFString.h" 28 #include "wtf/text/WTFString.h"
28 29
29 namespace blink { 30 namespace blink {
30 31
31 class ExceptionState; 32 class ExceptionState;
32 33
33 class CharacterData : public Node { 34 class CORE_EXPORT CharacterData : public Node {
34 DEFINE_WRAPPERTYPEINFO(); 35 DEFINE_WRAPPERTYPEINFO();
35 public: 36 public:
36 void atomize(); 37 void atomize();
37 const String& data() const { return m_data; } 38 const String& data() const { return m_data; }
38 void setData(const String&); 39 void setData(const String&);
39 unsigned length() const { return m_data.length(); } 40 unsigned length() const { return m_data.length(); }
40 String substringData(unsigned offset, unsigned count, ExceptionState&); 41 String substringData(unsigned offset, unsigned count, ExceptionState&);
41 void appendData(const String&); 42 void appendData(const String&);
42 void replaceData(unsigned offset, unsigned count, const String&, ExceptionSt ate&); 43 void replaceData(unsigned offset, unsigned count, const String&, ExceptionSt ate&);
43 44
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 82
82 bool isContainerNode() const = delete; // This will catch anyone doing an un necessary check. 83 bool isContainerNode() const = delete; // This will catch anyone doing an un necessary check.
83 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check. 84 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
84 }; 85 };
85 86
86 DEFINE_NODE_TYPE_CASTS(CharacterData, isCharacterDataNode()); 87 DEFINE_NODE_TYPE_CASTS(CharacterData, isCharacterDataNode());
87 88
88 } // namespace blink 89 } // namespace blink
89 90
90 #endif // CharacterData_h 91 #endif // CharacterData_h
OLDNEW
« no previous file with comments | « Source/core/dom/CSSSelectorWatch.h ('k') | Source/core/dom/ClientRectList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698