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

Side by Side Diff: public/web/WebElementCollection.h

Issue 401973003: Rename WebCore namespace to blink in Public (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 | « public/web/WebElement.h ('k') | public/web/WebFontDescription.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 17 matching lines...) Expand all
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef WebElementCollection_h 32 #ifndef WebElementCollection_h
33 #define WebElementCollection_h 33 #define WebElementCollection_h
34 34
35 #include "../platform/WebCommon.h" 35 #include "../platform/WebCommon.h"
36 #include "../platform/WebPrivatePtr.h" 36 #include "../platform/WebPrivatePtr.h"
37 37
38 namespace WebCore { class HTMLCollection; } 38 namespace blink { class HTMLCollection; }
39 #if BLINK_IMPLEMENTATION 39 #if BLINK_IMPLEMENTATION
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 namespace WTF { template <typename T> class PassRefPtr; } 41 namespace WTF { template <typename T> class PassRefPtr; }
42 #endif 42 #endif
43 43
44 namespace blink { 44 namespace blink {
45 class WebElement; 45 class WebElement;
46 46
47 // Provides readonly access to some properties of a DOM node. 47 // Provides readonly access to some properties of a DOM node.
48 class WebElementCollection { 48 class WebElementCollection {
(...skipping 11 matching lines...) Expand all
60 bool isNull() const { return m_private.isNull(); } 60 bool isNull() const { return m_private.isNull(); }
61 61
62 BLINK_EXPORT void reset(); 62 BLINK_EXPORT void reset();
63 BLINK_EXPORT void assign(const WebElementCollection&); 63 BLINK_EXPORT void assign(const WebElementCollection&);
64 64
65 BLINK_EXPORT unsigned length() const; 65 BLINK_EXPORT unsigned length() const;
66 BLINK_EXPORT WebElement nextItem() const; 66 BLINK_EXPORT WebElement nextItem() const;
67 BLINK_EXPORT WebElement firstItem() const; 67 BLINK_EXPORT WebElement firstItem() const;
68 68
69 #if BLINK_IMPLEMENTATION 69 #if BLINK_IMPLEMENTATION
70 WebElementCollection(const PassRefPtrWillBeRawPtr<WebCore::HTMLCollection>&) ; 70 WebElementCollection(const PassRefPtrWillBeRawPtr<blink::HTMLCollection>&);
71 WebElementCollection& operator=(const PassRefPtrWillBeRawPtr<WebCore::HTMLCo llection>&); 71 WebElementCollection& operator=(const PassRefPtrWillBeRawPtr<blink::HTMLColl ection>&);
72 #endif 72 #endif
73 73
74 private: 74 private:
75 WebPrivatePtr<WebCore::HTMLCollection> m_private; 75 WebPrivatePtr<blink::HTMLCollection> m_private;
76 mutable unsigned m_current; 76 mutable unsigned m_current;
77 }; 77 };
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif 81 #endif
OLDNEW
« no previous file with comments | « public/web/WebElement.h ('k') | public/web/WebFontDescription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698