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

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

Issue 1139603004: Revert of Remove WebElement::innerText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/WebElement.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Returns the qualified name, which may contain a prefix and a colon. 53 // Returns the qualified name, which may contain a prefix and a colon.
54 BLINK_EXPORT WebString tagName() const; 54 BLINK_EXPORT WebString tagName() const;
55 // Check if this element has the specified local tag name, and the HTML 55 // Check if this element has the specified local tag name, and the HTML
56 // namespace. Tag name matching is case-insensitive. 56 // namespace. Tag name matching is case-insensitive.
57 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const; 57 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const;
58 BLINK_EXPORT bool hasAttribute(const WebString&) const; 58 BLINK_EXPORT bool hasAttribute(const WebString&) const;
59 BLINK_EXPORT void removeAttribute(const WebString&); 59 BLINK_EXPORT void removeAttribute(const WebString&);
60 BLINK_EXPORT WebString getAttribute(const WebString&) const; 60 BLINK_EXPORT WebString getAttribute(const WebString&) const;
61 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value ); 61 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value );
62 BLINK_EXPORT WebString textContent(); 62 BLINK_EXPORT WebString textContent();
63 // TODO(dglazkov): Remove once Cr side lands.
64 BLINK_EXPORT WebString innerText();
63 BLINK_EXPORT void requestFullScreen(); 65 BLINK_EXPORT void requestFullScreen();
64 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; 66 BLINK_EXPORT WebString attributeLocalName(unsigned index) const;
65 BLINK_EXPORT WebString attributeValue(unsigned index) const; 67 BLINK_EXPORT WebString attributeValue(unsigned index) const;
66 BLINK_EXPORT unsigned attributeCount() const; 68 BLINK_EXPORT unsigned attributeCount() const;
67 BLINK_EXPORT WebNode shadowRoot() const; 69 BLINK_EXPORT WebNode shadowRoot() const;
68 70
69 // Returns the language code specified for this element. This attribute 71 // Returns the language code specified for this element. This attribute
70 // is inherited, so the returned value is drawn from the closest parent 72 // is inherited, so the returned value is drawn from the closest parent
71 // element that has the lang attribute set, or from the HTTP 73 // element that has the lang attribute set, or from the HTTP
72 // "Content-Language" header as a fallback. 74 // "Content-Language" header as a fallback.
(...skipping 12 matching lines...) Expand all
85 #if BLINK_IMPLEMENTATION 87 #if BLINK_IMPLEMENTATION
86 WebElement(const PassRefPtrWillBeRawPtr<Element>&); 88 WebElement(const PassRefPtrWillBeRawPtr<Element>&);
87 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); 89 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&);
88 operator PassRefPtrWillBeRawPtr<Element>() const; 90 operator PassRefPtrWillBeRawPtr<Element>() const;
89 #endif 91 #endif
90 }; 92 };
91 93
92 } // namespace blink 94 } // namespace blink
93 95
94 #endif 96 #endif
OLDNEW
« no previous file with comments | « Source/web/WebElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698