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

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

Issue 978173002: Merge 190852 "[Contextual Search] Check for an ARIA widget." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2311/
Patch Set: Created 5 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 | 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // Returns true if the node has a non-empty bounding box in layout. 120 // Returns true if the node has a non-empty bounding box in layout.
121 // This does not 100% guarantee the user can see it, but is pretty close. 121 // This does not 100% guarantee the user can see it, but is pretty close.
122 // Note: This method only works properly after layout has occurred. 122 // Note: This method only works properly after layout has occurred.
123 BLINK_EXPORT bool hasNonEmptyBoundingBox() const; 123 BLINK_EXPORT bool hasNonEmptyBoundingBox() const;
124 124
125 BLINK_EXPORT bool containsIncludingShadowDOM(const WebNode&) const; 125 BLINK_EXPORT bool containsIncludingShadowDOM(const WebNode&) const;
126 BLINK_EXPORT WebPluginContainer* pluginContainer() const; 126 BLINK_EXPORT WebPluginContainer* pluginContainer() const;
127 BLINK_EXPORT WebElement shadowHost() const; 127 BLINK_EXPORT WebElement shadowHost() const;
128 128
129 BLINK_EXPORT bool isInsideFocusableElementOrARIAWidget() const;
129 BLINK_EXPORT WebAXObject accessibilityObject(); 130 BLINK_EXPORT WebAXObject accessibilityObject();
130 131
131 template<typename T> T to() 132 template<typename T> T to()
132 { 133 {
133 T res; 134 T res;
134 res.WebNode::assign(*this); 135 res.WebNode::assign(*this);
135 return res; 136 return res;
136 } 137 }
137 138
138 template<typename T> const T toConst() const 139 template<typename T> const T toConst() const
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 176 }
176 177
177 inline bool operator<(const WebNode& a, const WebNode& b) 178 inline bool operator<(const WebNode& a, const WebNode& b)
178 { 179 {
179 return a.lessThan(b); 180 return a.lessThan(b);
180 } 181 }
181 182
182 } // namespace blink 183 } // namespace blink
183 184
184 #endif 185 #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