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

Side by Side Diff: sky/engine/web/WebNode.cpp

Issue 698123002: Remove more API from Node and ContainerNode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « sky/engine/public/web/WebNode.h ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 WebNode WebNode::parentNode() const 79 WebNode WebNode::parentNode() const
80 { 80 {
81 return WebNode(const_cast<ContainerNode*>(m_private->parentNode())); 81 return WebNode(const_cast<ContainerNode*>(m_private->parentNode()));
82 } 82 }
83 83
84 WebString WebNode::nodeName() const 84 WebString WebNode::nodeName() const
85 { 85 {
86 return m_private->nodeName(); 86 return m_private->nodeName();
87 } 87 }
88 88
89 WebString WebNode::nodeValue() const
90 {
91 return m_private->nodeValue();
92 }
93
94 WebDocument WebNode::document() const 89 WebDocument WebNode::document() const
95 { 90 {
96 return WebDocument(&m_private->document()); 91 return WebDocument(&m_private->document());
97 } 92 }
98 93
99 WebNode WebNode::firstChild() const 94 WebNode WebNode::firstChild() const
100 { 95 {
101 return WebNode(m_private->firstChild()); 96 return WebNode(m_private->firstChild());
102 } 97 }
103 98
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 m_private = node; 217 m_private = node;
223 return *this; 218 return *this;
224 } 219 }
225 220
226 WebNode::operator PassRefPtr<Node>() const 221 WebNode::operator PassRefPtr<Node>() const
227 { 222 {
228 return m_private.get(); 223 return m_private.get();
229 } 224 }
230 225
231 } // namespace blink 226 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698