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

Side by Side Diff: Source/WebKit/chromium/public/WebNode.h

Issue 12463035: Moar RELEASE_ASSERTs (Closed) Base URL: https://chromium.googlesource.com/external/WebKit_trimmed.git@master
Patch Set: Created 7 years, 9 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
« no previous file with comments | « Source/WebKit/chromium/WebKit.gypi ('k') | Source/WebKit/chromium/src/WebNode.cpp » ('j') | 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 WEBKIT_EXPORT WebNode nextSibling() const; 100 WEBKIT_EXPORT WebNode nextSibling() const;
101 WEBKIT_EXPORT bool hasChildNodes() const; 101 WEBKIT_EXPORT bool hasChildNodes() const;
102 WEBKIT_EXPORT WebNodeList childNodes(); 102 WEBKIT_EXPORT WebNodeList childNodes();
103 WEBKIT_EXPORT bool appendChild(const WebNode& child); 103 WEBKIT_EXPORT bool appendChild(const WebNode& child);
104 WEBKIT_EXPORT WebString createMarkup() const; 104 WEBKIT_EXPORT WebString createMarkup() const;
105 WEBKIT_EXPORT bool isLink() const; 105 WEBKIT_EXPORT bool isLink() const;
106 WEBKIT_EXPORT bool isTextNode() const; 106 WEBKIT_EXPORT bool isTextNode() const;
107 WEBKIT_EXPORT bool isFocusable() const; 107 WEBKIT_EXPORT bool isFocusable() const;
108 WEBKIT_EXPORT bool isContentEditable() const; 108 WEBKIT_EXPORT bool isContentEditable() const;
109 WEBKIT_EXPORT bool isElementNode() const; 109 WEBKIT_EXPORT bool isElementNode() const;
110 // hasEventListeners only works with a small set of eventTypes.
110 WEBKIT_EXPORT bool hasEventListeners(const WebString& eventType) const; 111 WEBKIT_EXPORT bool hasEventListeners(const WebString& eventType) const;
112 // addEventListener only works with a small set of eventTypes.
111 WEBKIT_EXPORT void addEventListener(const WebString& eventType, WebDOMEventL istener* listener, bool useCapture); 113 WEBKIT_EXPORT void addEventListener(const WebString& eventType, WebDOMEventL istener* listener, bool useCapture);
112 WEBKIT_EXPORT void removeEventListener(const WebString& eventType, WebDOMEve ntListener* listener, bool useCapture);
113 WEBKIT_EXPORT bool dispatchEvent(const WebDOMEvent&); 114 WEBKIT_EXPORT bool dispatchEvent(const WebDOMEvent&);
114 WEBKIT_EXPORT void simulateClick(); 115 WEBKIT_EXPORT void simulateClick();
115 WEBKIT_EXPORT WebNodeList getElementsByTagName(const WebString&) const; 116 WEBKIT_EXPORT WebNodeList getElementsByTagName(const WebString&) const;
116 WEBKIT_EXPORT WebElement querySelector(const WebString&, WebExceptionCode&) const; 117 WEBKIT_EXPORT WebElement querySelector(const WebString&, WebExceptionCode&) const;
117 WEBKIT_EXPORT WebElement rootEditableElement() const; 118 WEBKIT_EXPORT WebElement rootEditableElement() const;
118 WEBKIT_EXPORT bool focused() const; 119 WEBKIT_EXPORT bool focused() const;
119 WEBKIT_EXPORT bool remove(); 120 WEBKIT_EXPORT bool remove();
120 121
121 // Returns true if the node has a non-empty bounding box in layout. 122 // Returns true if the node has a non-empty bounding box in layout.
122 // This does not 100% guarantee the user can see it, but is pretty close. 123 // This does not 100% guarantee the user can see it, but is pretty close.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 173 }
173 174
174 inline bool operator<(const WebNode& a, const WebNode& b) 175 inline bool operator<(const WebNode& a, const WebNode& b)
175 { 176 {
176 return a.lessThan(b); 177 return a.lessThan(b);
177 } 178 }
178 179
179 } // namespace WebKit 180 } // namespace WebKit
180 181
181 #endif 182 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/WebKit.gypi ('k') | Source/WebKit/chromium/src/WebNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698