OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |