| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/dom/Element.h" | 36 #include "core/dom/Element.h" |
| 37 #include "core/dom/Node.h" | 37 #include "core/dom/Node.h" |
| 38 #include "core/dom/NodeList.h" | 38 #include "core/dom/NodeList.h" |
| 39 #include "core/editing/markup.h" | 39 #include "core/editing/markup.h" |
| 40 #include "core/events/Event.h" | 40 #include "core/events/Event.h" |
| 41 #include "core/html/HTMLElement.h" | 41 #include "core/html/HTMLElement.h" |
| 42 #include "core/rendering/RenderObject.h" | 42 #include "core/rendering/RenderObject.h" |
| 43 #include "platform/Widget.h" | 43 #include "platform/Widget.h" |
| 44 #include "public/platform/WebString.h" | 44 #include "public/platform/WebString.h" |
| 45 #include "public/platform/WebVector.h" | 45 #include "public/platform/WebVector.h" |
| 46 #include "public/web/WebDOMEvent.h" | |
| 47 #include "public/web/WebDocument.h" | 46 #include "public/web/WebDocument.h" |
| 48 #include "public/web/WebElement.h" | 47 #include "public/web/WebElement.h" |
| 49 #include "web/FrameLoaderClientImpl.h" | 48 #include "web/FrameLoaderClientImpl.h" |
| 50 #include "web/WebLocalFrameImpl.h" | 49 #include "web/WebLocalFrameImpl.h" |
| 51 | 50 |
| 52 namespace blink { | 51 namespace blink { |
| 53 | 52 |
| 54 void WebNode::reset() | 53 void WebNode::reset() |
| 55 { | 54 { |
| 56 m_private.reset(); | 55 m_private.reset(); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool WebNode::isContentEditable() const | 141 bool WebNode::isContentEditable() const |
| 143 { | 142 { |
| 144 return m_private->isContentEditable(); | 143 return m_private->isContentEditable(); |
| 145 } | 144 } |
| 146 | 145 |
| 147 bool WebNode::isElementNode() const | 146 bool WebNode::isElementNode() const |
| 148 { | 147 { |
| 149 return m_private->isElementNode(); | 148 return m_private->isElementNode(); |
| 150 } | 149 } |
| 151 | 150 |
| 152 bool WebNode::dispatchEvent(const WebDOMEvent& event) | |
| 153 { | |
| 154 if (!event.isNull()) | |
| 155 return m_private->dispatchEvent(event); | |
| 156 return false; | |
| 157 } | |
| 158 | |
| 159 void WebNode::simulateClick() | 151 void WebNode::simulateClick() |
| 160 { | 152 { |
| 161 m_private->dispatchSimulatedClick(0); | 153 m_private->dispatchSimulatedClick(0); |
| 162 } | 154 } |
| 163 | 155 |
| 164 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst | 156 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst |
| 165 { | 157 { |
| 166 TrackExceptionState exceptionState; | 158 TrackExceptionState exceptionState; |
| 167 WebElement element; | 159 WebElement element; |
| 168 if (m_private->isContainerNode()) | 160 if (m_private->isContainerNode()) |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 m_private = node; | 209 m_private = node; |
| 218 return *this; | 210 return *this; |
| 219 } | 211 } |
| 220 | 212 |
| 221 WebNode::operator PassRefPtr<Node>() const | 213 WebNode::operator PassRefPtr<Node>() const |
| 222 { | 214 { |
| 223 return m_private.get(); | 215 return m_private.get(); |
| 224 } | 216 } |
| 225 | 217 |
| 226 } // namespace blink | 218 } // namespace blink |
| OLD | NEW |