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

Unified Diff: public/web/WebElementCollection.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/WebDocument.h ('k') | public/web/WebInputElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebElementCollection.h
diff --git a/public/web/WebNodeCollection.h b/public/web/WebElementCollection.h
similarity index 81%
copy from public/web/WebNodeCollection.h
copy to public/web/WebElementCollection.h
index 74938791fb4570b66fe44698203673454f8d29ec..e6eaed571f02bd168284ed4e643a3578647468f7 100644
--- a/public/web/WebNodeCollection.h
+++ b/public/web/WebElementCollection.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,8 +29,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebNodeCollection_h
-#define WebNodeCollection_h
+#ifndef WebElementCollection_h
+#define WebElementCollection_h
#include "../platform/WebCommon.h"
@@ -42,13 +43,13 @@ namespace blink {
class WebElement;
// Provides readonly access to some properties of a DOM node.
-class WebNodeCollection {
+class WebElementCollection {
public:
- ~WebNodeCollection() { reset(); }
+ ~WebElementCollection() { reset(); }
- WebNodeCollection() : m_private(0), m_current(0) { }
- WebNodeCollection(const WebNodeCollection& n) : m_private(0) { assign(n); }
- WebNodeCollection& operator=(const WebNodeCollection& n)
+ WebElementCollection() : m_private(0), m_current(0) { }
+ WebElementCollection(const WebElementCollection& n) : m_private(0) { assign(n); }
+ WebElementCollection& operator=(const WebElementCollection& n)
{
assign(n);
return *this;
@@ -57,14 +58,14 @@ public:
bool isNull() const { return !m_private; }
BLINK_EXPORT void reset();
- BLINK_EXPORT void assign(const WebNodeCollection&);
+ BLINK_EXPORT void assign(const WebElementCollection&);
BLINK_EXPORT unsigned length() const;
BLINK_EXPORT WebElement nextItem() const;
BLINK_EXPORT WebElement firstItem() const;
#if BLINK_IMPLEMENTATION
- WebNodeCollection(const WTF::PassRefPtr<WebCore::HTMLCollection>&);
+ WebElementCollection(const WTF::PassRefPtr<WebCore::HTMLCollection>&);
#endif
private:
« no previous file with comments | « public/web/WebDocument.h ('k') | public/web/WebInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698