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

Side by Side Diff: Source/web/WebNode.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebNetworkStateNotifier.cpp ('k') | Source/web/WebNodeList.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 * 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "public/web/WebDocument.h" 51 #include "public/web/WebDocument.h"
52 #include "public/web/WebElement.h" 52 #include "public/web/WebElement.h"
53 #include "public/web/WebElementCollection.h" 53 #include "public/web/WebElementCollection.h"
54 #include "public/web/WebNodeList.h" 54 #include "public/web/WebNodeList.h"
55 #include "public/web/WebPluginContainer.h" 55 #include "public/web/WebPluginContainer.h"
56 #include "web/EventListenerWrapper.h" 56 #include "web/EventListenerWrapper.h"
57 #include "web/FrameLoaderClientImpl.h" 57 #include "web/FrameLoaderClientImpl.h"
58 #include "web/WebLocalFrameImpl.h" 58 #include "web/WebLocalFrameImpl.h"
59 #include "web/WebPluginContainerImpl.h" 59 #include "web/WebPluginContainerImpl.h"
60 60
61 using namespace WebCore; 61 using namespace blink;
62 62
63 namespace blink { 63 namespace blink {
64 64
65 void WebNode::reset() 65 void WebNode::reset()
66 { 66 {
67 m_private.reset(); 67 m_private.reset();
68 } 68 }
69 69
70 void WebNode::assign(const WebNode& other) 70 void WebNode::assign(const WebNode& other)
71 { 71 {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 return m_private->hasChildren(); 132 return m_private->hasChildren();
133 } 133 }
134 134
135 WebNodeList WebNode::childNodes() 135 WebNodeList WebNode::childNodes()
136 { 136 {
137 return WebNodeList(m_private->childNodes()); 137 return WebNodeList(m_private->childNodes());
138 } 138 }
139 139
140 WebString WebNode::createMarkup() const 140 WebString WebNode::createMarkup() const
141 { 141 {
142 return WebCore::createMarkup(m_private.get()); 142 return blink::createMarkup(m_private.get());
143 } 143 }
144 144
145 bool WebNode::isLink() const 145 bool WebNode::isLink() const
146 { 146 {
147 return m_private->isLink(); 147 return m_private->isLink();
148 } 148 }
149 149
150 bool WebNode::isTextNode() const 150 bool WebNode::isTextNode() const
151 { 151 {
152 return m_private->isTextNode(); 152 return m_private->isTextNode();
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 236
237 WebPluginContainer* WebNode::pluginContainer() const 237 WebPluginContainer* WebNode::pluginContainer() const
238 { 238 {
239 if (isNull()) 239 if (isNull())
240 return 0; 240 return 0;
241 const Node& coreNode = *constUnwrap<Node>(); 241 const Node& coreNode = *constUnwrap<Node>();
242 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) { 242 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) {
243 RenderObject* object = coreNode.renderer(); 243 RenderObject* object = coreNode.renderer();
244 if (object && object->isWidget()) { 244 if (object && object->isWidget()) {
245 Widget* widget = WebCore::toRenderWidget(object)->widget(); 245 Widget* widget = blink::toRenderWidget(object)->widget();
246 if (widget && widget->isPluginContainer()) 246 if (widget && widget->isPluginContainer())
247 return toWebPluginContainerImpl(widget); 247 return toWebPluginContainerImpl(widget);
248 } 248 }
249 } 249 }
250 return 0; 250 return 0;
251 } 251 }
252 252
253 WebElement WebNode::shadowHost() const 253 WebElement WebNode::shadowHost() const
254 { 254 {
255 if (isNull()) 255 if (isNull())
(...skipping 12 matching lines...) Expand all
268 m_private = node; 268 m_private = node;
269 return *this; 269 return *this;
270 } 270 }
271 271
272 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const 272 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const
273 { 273 {
274 return m_private.get(); 274 return m_private.get();
275 } 275 }
276 276
277 } // namespace blink 277 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebNetworkStateNotifier.cpp ('k') | Source/web/WebNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698