| 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 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebElement_h | 31 #ifndef WebElement_h |
| 32 #define WebElement_h | 32 #define WebElement_h |
| 33 | 33 |
| 34 #include "../platform/WebImage.h" | 34 #include "../platform/WebImage.h" |
| 35 #include "WebNode.h" | 35 #include "WebNode.h" |
| 36 | 36 |
| 37 #if BLINK_IMPLEMENTATION | 37 namespace blink { |
| 38 namespace blink { class Element; } | |
| 39 #endif | |
| 40 | 38 |
| 41 namespace blink { | 39 class Element; |
| 42 struct WebRect; | 40 struct WebRect; |
| 43 | 41 |
| 44 // Provides access to some properties of a DOM element node. | 42 // Provides access to some properties of a DOM element node. |
| 45 class WebElement : public WebNode { | 43 class WebElement : public WebNode { |
| 46 public: | 44 public: |
| 47 WebElement() : WebNode() { } | 45 WebElement() : WebNode() { } |
| 48 WebElement(const WebElement& e) : WebNode(e) { } | 46 WebElement(const WebElement& e) : WebNode(e) { } |
| 49 | 47 |
| 50 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return
*this; } | 48 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return
*this; } |
| 51 void assign(const WebElement& e) { WebNode::assign(e); } | 49 void assign(const WebElement& e) { WebNode::assign(e); } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 78 // have been adjusted to include any transformations. This view is | 76 // have been adjusted to include any transformations. This view is |
| 79 // also called the Root View in WebKit. | 77 // also called the Root View in WebKit. |
| 80 // This function will update the layout if required. | 78 // This function will update the layout if required. |
| 81 BLINK_EXPORT WebRect boundsInViewportSpace(); | 79 BLINK_EXPORT WebRect boundsInViewportSpace(); |
| 82 | 80 |
| 83 // Returns the image contents of this element or a null WebImage | 81 // Returns the image contents of this element or a null WebImage |
| 84 // if there isn't any. | 82 // if there isn't any. |
| 85 BLINK_EXPORT WebImage imageContents(); | 83 BLINK_EXPORT WebImage imageContents(); |
| 86 | 84 |
| 87 #if BLINK_IMPLEMENTATION | 85 #if BLINK_IMPLEMENTATION |
| 88 WebElement(const PassRefPtrWillBeRawPtr<blink::Element>&); | 86 WebElement(const PassRefPtrWillBeRawPtr<Element>&); |
| 89 WebElement& operator=(const PassRefPtrWillBeRawPtr<blink::Element>&); | 87 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); |
| 90 operator PassRefPtrWillBeRawPtr<blink::Element>() const; | 88 operator PassRefPtrWillBeRawPtr<Element>() const; |
| 91 #endif | 89 #endif |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace blink | 92 } // namespace blink |
| 95 | 93 |
| 96 #endif | 94 #endif |
| OLD | NEW |