OLD | NEW |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 WEBKIT_API WebNode lastChild() const; | 99 WEBKIT_API WebNode lastChild() const; |
100 WEBKIT_API WebNode previousSibling() const; | 100 WEBKIT_API WebNode previousSibling() const; |
101 WEBKIT_API WebNode nextSibling() const; | 101 WEBKIT_API WebNode nextSibling() const; |
102 WEBKIT_API bool hasChildNodes() const; | 102 WEBKIT_API bool hasChildNodes() const; |
103 WEBKIT_API WebNodeList childNodes(); | 103 WEBKIT_API WebNodeList childNodes(); |
104 WEBKIT_API WebString createMarkup() const; | 104 WEBKIT_API WebString createMarkup() const; |
105 WEBKIT_API bool isTextNode() const; | 105 WEBKIT_API bool isTextNode() const; |
106 WEBKIT_API bool isElementNode() const; | 106 WEBKIT_API bool isElementNode() const; |
107 WEBKIT_API void addEventListener(const WebString& eventType, WebEventListene
r* listener, bool useCapture); | 107 WEBKIT_API void addEventListener(const WebString& eventType, WebEventListene
r* listener, bool useCapture); |
108 WEBKIT_API void removeEventListener(const WebString& eventType, WebEventList
ener* listener, bool useCapture); | 108 WEBKIT_API void removeEventListener(const WebString& eventType, WebEventList
ener* listener, bool useCapture); |
| 109 WEBKIT_API void simulateClick(); |
109 | 110 |
110 template<typename T> T toElement() | 111 template<typename T> T toElement() |
111 { | 112 { |
112 T res; | 113 T res; |
113 res.WebNode::assign(*this); | 114 res.WebNode::assign(*this); |
114 return res; | 115 return res; |
115 } | 116 } |
116 | 117 |
117 template<typename T> const T toConstElement() const | 118 template<typename T> const T toConstElement() const |
118 { | 119 { |
(...skipping 24 matching lines...) Expand all Loading... |
143 } | 144 } |
144 | 145 |
145 inline bool operator!=(const WebNode& a, const WebNode& b) | 146 inline bool operator!=(const WebNode& a, const WebNode& b) |
146 { | 147 { |
147 return !(a == b); | 148 return !(a == b); |
148 } | 149 } |
149 | 150 |
150 } // namespace WebKit | 151 } // namespace WebKit |
151 | 152 |
152 #endif | 153 #endif |
OLD | NEW |