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

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

Issue 152243003: Rename WebNodeCollection to WebElementCollection for clarity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | « public/web/WebInputElement.h ('k') | public/web/WebNodeCollection.h » ('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 26 matching lines...) Expand all
37 #include "WebExceptionCode.h" 37 #include "WebExceptionCode.h"
38 38
39 namespace WebCore { class Node; } 39 namespace WebCore { class Node; }
40 40
41 namespace blink { 41 namespace blink {
42 class WebDOMEvent; 42 class WebDOMEvent;
43 class WebDOMEventListener; 43 class WebDOMEventListener;
44 class WebDOMEventListenerPrivate; 44 class WebDOMEventListenerPrivate;
45 class WebDocument; 45 class WebDocument;
46 class WebElement; 46 class WebElement;
47 class WebElementCollection;
47 class WebFrame; 48 class WebFrame;
48 class WebNodeCollection;
49 class WebNodeList; 49 class WebNodeList;
50 class WebPluginContainer; 50 class WebPluginContainer;
51 51
52 // Provides access to some properties of a DOM node. 52 // Provides access to some properties of a DOM node.
53 // Note that the class design requires that neither this class nor any of its su bclasses have any virtual 53 // Note that the class design requires that neither this class nor any of its su bclasses have any virtual
54 // methods (other than the destructor), so that it is possible to safely static_ cast an instance of one 54 // methods (other than the destructor), so that it is possible to safely static_ cast an instance of one
55 // class to the appropriate subclass based on the actual type of the wrapped Web Core::Node. For the same 55 // class to the appropriate subclass based on the actual type of the wrapped Web Core::Node. For the same
56 // reason, subclasses must not add any additional data members. 56 // reason, subclasses must not add any additional data members.
57 class WebNode { 57 class WebNode {
58 public: 58 public:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 BLINK_EXPORT WebString createMarkup() const; 107 BLINK_EXPORT WebString createMarkup() const;
108 BLINK_EXPORT bool isLink() const; 108 BLINK_EXPORT bool isLink() const;
109 BLINK_EXPORT bool isTextNode() const; 109 BLINK_EXPORT bool isTextNode() const;
110 BLINK_EXPORT bool isFocusable() const; 110 BLINK_EXPORT bool isFocusable() const;
111 BLINK_EXPORT bool isContentEditable() const; 111 BLINK_EXPORT bool isContentEditable() const;
112 BLINK_EXPORT bool isElementNode() const; 112 BLINK_EXPORT bool isElementNode() const;
113 // addEventListener only works with a small set of eventTypes. 113 // addEventListener only works with a small set of eventTypes.
114 BLINK_EXPORT void addEventListener(const WebString& eventType, WebDOMEventLi stener* listener, bool useCapture); 114 BLINK_EXPORT void addEventListener(const WebString& eventType, WebDOMEventLi stener* listener, bool useCapture);
115 BLINK_EXPORT bool dispatchEvent(const WebDOMEvent&); 115 BLINK_EXPORT bool dispatchEvent(const WebDOMEvent&);
116 BLINK_EXPORT void simulateClick(); 116 BLINK_EXPORT void simulateClick();
117 BLINK_EXPORT WebNodeCollection getElementsByTagName(const WebString&) const; 117 BLINK_EXPORT WebElementCollection getElementsByTagName(const WebString&) con st;
118 BLINK_EXPORT WebElement querySelector(const WebString&, WebExceptionCode&) c onst; 118 BLINK_EXPORT WebElement querySelector(const WebString&, WebExceptionCode&) c onst;
119 BLINK_EXPORT WebElement rootEditableElement() const; 119 BLINK_EXPORT WebElement rootEditableElement() const;
120 BLINK_EXPORT bool focused() const; 120 BLINK_EXPORT bool focused() const;
121 BLINK_EXPORT bool remove(); 121 BLINK_EXPORT bool remove();
122 122
123 // 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.
124 // 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.
125 // Note: This method only works properly after layout has occurred. 125 // Note: This method only works properly after layout has occurred.
126 BLINK_EXPORT bool hasNonEmptyBoundingBox() const; 126 BLINK_EXPORT bool hasNonEmptyBoundingBox() const;
127 BLINK_EXPORT WebPluginContainer* pluginContainer() const; 127 BLINK_EXPORT WebPluginContainer* pluginContainer() const;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 inline bool operator<(const WebNode& a, const WebNode& b) 176 inline bool operator<(const WebNode& a, const WebNode& b)
177 { 177 {
178 return a.lessThan(b); 178 return a.lessThan(b);
179 } 179 }
180 180
181 } // namespace blink 181 } // namespace blink
182 182
183 #endif 183 #endif
OLDNEW
« no previous file with comments | « public/web/WebInputElement.h ('k') | public/web/WebNodeCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698