Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: public/web/WebElement.h

Issue 350433004: Revert of Remove WebElement::hasTagName. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
57 // Check if this element has the specified local tag name, and the HTML 61 // Check if this element has the specified local tag name, and the HTML
58 // namespace. Tag name matching is case-insensitive. 62 // namespace. Tag name matching is case-insensitive.
59 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const; 63 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const;
60 BLINK_EXPORT bool hasAttribute(const WebString&) const; 64 BLINK_EXPORT bool hasAttribute(const WebString&) const;
61 BLINK_EXPORT void removeAttribute(const WebString&); 65 BLINK_EXPORT void removeAttribute(const WebString&);
62 BLINK_EXPORT WebString getAttribute(const WebString&) const; 66 BLINK_EXPORT WebString getAttribute(const WebString&) const;
63 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& v alue); 67 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& v alue);
64 BLINK_EXPORT WebString innerText(); 68 BLINK_EXPORT WebString innerText();
65 BLINK_EXPORT void requestFullScreen(); 69 BLINK_EXPORT void requestFullScreen();
66 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; 70 BLINK_EXPORT WebString attributeLocalName(unsigned index) const;
(...skipping 20 matching lines...) Expand all
87 #if BLINK_IMPLEMENTATION 91 #if BLINK_IMPLEMENTATION
88 WebElement(const PassRefPtrWillBeRawPtr<WebCore::Element>&); 92 WebElement(const PassRefPtrWillBeRawPtr<WebCore::Element>&);
89 WebElement& operator=(const PassRefPtrWillBeRawPtr<WebCore::Element>&); 93 WebElement& operator=(const PassRefPtrWillBeRawPtr<WebCore::Element>&);
90 operator PassRefPtrWillBeRawPtr<WebCore::Element>() const; 94 operator PassRefPtrWillBeRawPtr<WebCore::Element>() const;
91 #endif 95 #endif
92 }; 96 };
93 97
94 } // namespace blink 98 } // namespace blink
95 99
96 #endif 100 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698