| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool WebNode::isContentEditable() const | 135 bool WebNode::isContentEditable() const |
| 136 { | 136 { |
| 137 return m_private->isContentEditable(); | 137 return m_private->isContentEditable(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 bool WebNode::isElementNode() const | 140 bool WebNode::isElementNode() const |
| 141 { | 141 { |
| 142 return m_private->isElementNode(); | 142 return m_private->isElementNode(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void WebNode::simulateClick() | |
| 146 { | |
| 147 m_private->dispatchSimulatedClick(0); | |
| 148 } | |
| 149 | |
| 150 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst | 145 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst |
| 151 { | 146 { |
| 152 TrackExceptionState exceptionState; | 147 TrackExceptionState exceptionState; |
| 153 WebElement element; | 148 WebElement element; |
| 154 if (m_private->isContainerNode()) | 149 if (m_private->isContainerNode()) |
| 155 element = toContainerNode(m_private.get())->querySelector(tag, exception
State); | 150 element = toContainerNode(m_private.get())->querySelector(tag, exception
State); |
| 156 ec = exceptionState.code(); | 151 ec = exceptionState.code(); |
| 157 return element; | 152 return element; |
| 158 } | 153 } |
| 159 | 154 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 m_private = node; | 198 m_private = node; |
| 204 return *this; | 199 return *this; |
| 205 } | 200 } |
| 206 | 201 |
| 207 WebNode::operator PassRefPtr<Node>() const | 202 WebNode::operator PassRefPtr<Node>() const |
| 208 { | 203 { |
| 209 return m_private.get(); | 204 return m_private.get(); |
| 210 } | 205 } |
| 211 | 206 |
| 212 } // namespace blink | 207 } // namespace blink |
| OLD | NEW |