| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |