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

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

Issue 403673002: Remove WebNode::getElementsByTagName. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/WebNode.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 BLINK_EXPORT WebString createMarkup() const; 106 BLINK_EXPORT WebString createMarkup() const;
107 BLINK_EXPORT bool isLink() const; 107 BLINK_EXPORT bool isLink() const;
108 BLINK_EXPORT bool isTextNode() const; 108 BLINK_EXPORT bool isTextNode() const;
109 BLINK_EXPORT bool isFocusable() const; 109 BLINK_EXPORT bool isFocusable() const;
110 BLINK_EXPORT bool isContentEditable() const; 110 BLINK_EXPORT bool isContentEditable() const;
111 BLINK_EXPORT bool isElementNode() const; 111 BLINK_EXPORT bool isElementNode() const;
112 // addEventListener only works with a small set of eventTypes. 112 // addEventListener only works with a small set of eventTypes.
113 BLINK_EXPORT void addEventListener(const WebString& eventType, WebDOMEventLi stener* listener, bool useCapture); 113 BLINK_EXPORT void addEventListener(const WebString& eventType, WebDOMEventLi stener* listener, bool useCapture);
114 BLINK_EXPORT bool dispatchEvent(const WebDOMEvent&); 114 BLINK_EXPORT bool dispatchEvent(const WebDOMEvent&);
115 BLINK_EXPORT void simulateClick(); 115 BLINK_EXPORT void simulateClick();
116 // Deprecated. Use getElementsByHTMLTagName.
117 BLINK_EXPORT WebElementCollection getElementsByTagName(const WebString&) con st;
118 // The argument should be lower-cased. 116 // The argument should be lower-cased.
119 BLINK_EXPORT WebElementCollection getElementsByHTMLTagName(const WebString&) const; 117 BLINK_EXPORT WebElementCollection getElementsByHTMLTagName(const WebString&) const;
120 BLINK_EXPORT WebElement querySelector(const WebString&, WebExceptionCode&) c onst; 118 BLINK_EXPORT WebElement querySelector(const WebString&, WebExceptionCode&) c onst;
121 BLINK_EXPORT WebElement rootEditableElement() const; 119 BLINK_EXPORT WebElement rootEditableElement() const;
122 BLINK_EXPORT bool focused() const; 120 BLINK_EXPORT bool focused() const;
123 BLINK_EXPORT bool remove(); 121 BLINK_EXPORT bool remove();
124 122
125 // Returns true if the node has a non-empty bounding box in layout. 123 // Returns true if the node has a non-empty bounding box in layout.
126 // This does not 100% guarantee the user can see it, but is pretty close. 124 // This does not 100% guarantee the user can see it, but is pretty close.
127 // Note: This method only works properly after layout has occurred. 125 // Note: This method only works properly after layout has occurred.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 174 }
177 175
178 inline bool operator<(const WebNode& a, const WebNode& b) 176 inline bool operator<(const WebNode& a, const WebNode& b)
179 { 177 {
180 return a.lessThan(b); 178 return a.lessThan(b);
181 } 179 }
182 180
183 } // namespace blink 181 } // namespace blink
184 182
185 #endif 183 #endif
OLDNEW
« no previous file with comments | « Source/web/WebNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698