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

Unified Diff: public/web/WebNodeCollection.h

Issue 152243003: Rename WebNodeCollection to WebElementCollection for clarity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebNode.h ('k') | public/web/WebNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebNodeCollection.h
diff --git a/public/web/WebNodeCollection.h b/public/web/WebNodeCollection.h
index 74938791fb4570b66fe44698203673454f8d29ec..917f28378749c89412ae9a88a91b69eec67b7261 100644
--- a/public/web/WebNodeCollection.h
+++ b/public/web/WebNodeCollection.h
@@ -31,49 +31,11 @@
#ifndef WebNodeCollection_h
#define WebNodeCollection_h
-#include "../platform/WebCommon.h"
-
-namespace WebCore { class HTMLCollection; }
-#if BLINK_IMPLEMENTATION
-namespace WTF { template <typename T> class PassRefPtr; }
-#endif
+#include "WebElementCollection.h"
namespace blink {
-class WebElement;
-
-// Provides readonly access to some properties of a DOM node.
-class WebNodeCollection {
-public:
- ~WebNodeCollection() { reset(); }
-
- WebNodeCollection() : m_private(0), m_current(0) { }
- WebNodeCollection(const WebNodeCollection& n) : m_private(0) { assign(n); }
- WebNodeCollection& operator=(const WebNodeCollection& n)
- {
- assign(n);
- return *this;
- }
-
- bool isNull() const { return !m_private; }
-
- BLINK_EXPORT void reset();
- BLINK_EXPORT void assign(const WebNodeCollection&);
-
- BLINK_EXPORT unsigned length() const;
- BLINK_EXPORT WebElement nextItem() const;
- BLINK_EXPORT WebElement firstItem() const;
-
-#if BLINK_IMPLEMENTATION
- WebNodeCollection(const WTF::PassRefPtr<WebCore::HTMLCollection>&);
-#endif
-
-private:
- void assign(WebCore::HTMLCollection*);
- WebCore::HTMLCollection* m_private;
- mutable unsigned m_current;
- friend class WebNodeList;
-};
+typedef WebElementCollection WebNodeCollection;
} // namespace blink
« no previous file with comments | « public/web/WebNode.h ('k') | public/web/WebNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698