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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 WebElement() : WebNode() { } | 47 WebElement() : WebNode() { } |
48 WebElement(const WebElement& e) : WebNode(e) { } | 48 WebElement(const WebElement& e) : WebNode(e) { } |
49 | 49 |
50 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return
*this; } | 50 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return
*this; } |
51 void assign(const WebElement& e) { WebNode::assign(e); } | 51 void assign(const WebElement& e) { WebNode::assign(e); } |
52 | 52 |
53 BLINK_EXPORT bool isFormControlElement() const; | 53 BLINK_EXPORT bool isFormControlElement() const; |
54 BLINK_EXPORT bool isTextFormControlElement() const; | 54 BLINK_EXPORT bool isTextFormControlElement() const; |
55 // Returns the qualified name, which may contain a prefix and a colon. | 55 // Returns the qualified name, which may contain a prefix and a colon. |
56 BLINK_EXPORT WebString tagName() const; | 56 BLINK_EXPORT WebString tagName() const; |
57 // Check if this element has the specified qualified name. This function | |
58 // doesn't makes much sense because we have no ways to check namespace | |
59 // URI. Do not use this. | |
60 BLINK_EXPORT bool hasTagName(const WebString&) const; | |
61 // Check if this element has the specified local tag name, and the HTML | 57 // Check if this element has the specified local tag name, and the HTML |
62 // namespace. Tag name matching is case-insensitive. | 58 // namespace. Tag name matching is case-insensitive. |
63 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const; | 59 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const; |
64 BLINK_EXPORT bool hasAttribute(const WebString&) const; | 60 BLINK_EXPORT bool hasAttribute(const WebString&) const; |
65 BLINK_EXPORT void removeAttribute(const WebString&); | 61 BLINK_EXPORT void removeAttribute(const WebString&); |
66 BLINK_EXPORT WebString getAttribute(const WebString&) const; | 62 BLINK_EXPORT WebString getAttribute(const WebString&) const; |
67 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& v
alue); | 63 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& v
alue); |
68 BLINK_EXPORT WebString innerText(); | 64 BLINK_EXPORT WebString innerText(); |
69 BLINK_EXPORT void requestFullScreen(); | 65 BLINK_EXPORT void requestFullScreen(); |
70 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; | 66 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; |
(...skipping 20 matching lines...) Expand all Loading... |
91 #if BLINK_IMPLEMENTATION | 87 #if BLINK_IMPLEMENTATION |
92 WebElement(const PassRefPtrWillBeRawPtr<WebCore::Element>&); | 88 WebElement(const PassRefPtrWillBeRawPtr<WebCore::Element>&); |
93 WebElement& operator=(const PassRefPtrWillBeRawPtr<WebCore::Element>&); | 89 WebElement& operator=(const PassRefPtrWillBeRawPtr<WebCore::Element>&); |
94 operator PassRefPtrWillBeRawPtr<WebCore::Element>() const; | 90 operator PassRefPtrWillBeRawPtr<WebCore::Element>() const; |
95 #endif | 91 #endif |
96 }; | 92 }; |
97 | 93 |
98 } // namespace blink | 94 } // namespace blink |
99 | 95 |
100 #endif | 96 #endif |
OLD | NEW |