| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class WebElement : public WebNode { | 44 class WebElement : public WebNode { |
| 45 public: | 45 public: |
| 46 WebElement() : WebNode() { } | 46 WebElement() : WebNode() { } |
| 47 WebElement(const WebElement& e) : WebNode(e) { } | 47 WebElement(const WebElement& e) : WebNode(e) { } |
| 48 | 48 |
| 49 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return
*this; } | 49 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return
*this; } |
| 50 void assign(const WebElement& e) { WebNode::assign(e); } | 50 void assign(const WebElement& e) { WebNode::assign(e); } |
| 51 | 51 |
| 52 WEBKIT_EXPORT bool isFormControlElement() const; | 52 WEBKIT_EXPORT bool isFormControlElement() const; |
| 53 WEBKIT_EXPORT bool isTextFormControlElement() const; | 53 WEBKIT_EXPORT bool isTextFormControlElement() const; |
| 54 // Returns the qualified name, which may contain a prefix and a colon. |
| 54 WEBKIT_EXPORT WebString tagName() const; | 55 WEBKIT_EXPORT WebString tagName() const; |
| 56 // Check if this element has the specified qualified name. This function |
| 57 // doesn't makes much sense because we have no ways to check namespace |
| 58 // URI. Do not use this. |
| 55 WEBKIT_EXPORT bool hasTagName(const WebString&) const; | 59 WEBKIT_EXPORT bool hasTagName(const WebString&) const; |
| 60 // Check if this element has the specified local tag name, and the HTML |
| 61 // namespace. Tag name matching is case-insensitive. |
| 62 WEBKIT_EXPORT bool hasHTMLTagName(const WebString&) const; |
| 56 WEBKIT_EXPORT bool hasAttribute(const WebString&) const; | 63 WEBKIT_EXPORT bool hasAttribute(const WebString&) const; |
| 57 WEBKIT_EXPORT WebString getAttribute(const WebString&) const; | 64 WEBKIT_EXPORT WebString getAttribute(const WebString&) const; |
| 58 WEBKIT_EXPORT bool setAttribute(const WebString& name, const WebString&
value); | 65 WEBKIT_EXPORT bool setAttribute(const WebString& name, const WebString&
value); |
| 59 WEBKIT_EXPORT WebString innerText(); | 66 WEBKIT_EXPORT WebString innerText(); |
| 60 WEBKIT_EXPORT WebDocument document() const; | 67 WEBKIT_EXPORT WebDocument document() const; |
| 61 WEBKIT_EXPORT void requestFullScreen(); | 68 WEBKIT_EXPORT void requestFullScreen(); |
| 62 WEBKIT_EXPORT WebString attributeLocalName(unsigned index) const; | 69 WEBKIT_EXPORT WebString attributeLocalName(unsigned index) const; |
| 63 WEBKIT_EXPORT WebString attributeValue(unsigned index) const; | 70 WEBKIT_EXPORT WebString attributeValue(unsigned index) const; |
| 64 WEBKIT_EXPORT unsigned attributeCount() const; | 71 WEBKIT_EXPORT unsigned attributeCount() const; |
| 65 | 72 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 78 #if WEBKIT_IMPLEMENTATION | 85 #if WEBKIT_IMPLEMENTATION |
| 79 WebElement(const WTF::PassRefPtr<WebCore::Element>&); | 86 WebElement(const WTF::PassRefPtr<WebCore::Element>&); |
| 80 WebElement& operator=(const WTF::PassRefPtr<WebCore::Element>&); | 87 WebElement& operator=(const WTF::PassRefPtr<WebCore::Element>&); |
| 81 operator WTF::PassRefPtr<WebCore::Element>() const; | 88 operator WTF::PassRefPtr<WebCore::Element>() const; |
| 82 #endif | 89 #endif |
| 83 }; | 90 }; |
| 84 | 91 |
| 85 } // namespace WebKit | 92 } // namespace WebKit |
| 86 | 93 |
| 87 #endif | 94 #endif |
| OLD | NEW |