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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 211 } |
212 | 212 |
213 bool WebAXObject::isAnchor() const | 213 bool WebAXObject::isAnchor() const |
214 { | 214 { |
215 if (isDetached()) | 215 if (isDetached()) |
216 return 0; | 216 return 0; |
217 | 217 |
218 return m_private->isAnchor(); | 218 return m_private->isAnchor(); |
219 } | 219 } |
220 | 220 |
| 221 WebAXDefined WebAXObject::isAriaGrabbed() const |
| 222 { |
| 223 if (isDetached()) |
| 224 return WebAXDefinedUndefined; |
| 225 |
| 226 return static_cast<WebAXDefined>(m_private->isAriaGrabbed()); |
| 227 } |
| 228 |
221 bool WebAXObject::isAriaReadOnly() const | 229 bool WebAXObject::isAriaReadOnly() const |
222 { | 230 { |
223 if (isDetached()) | 231 if (isDetached()) |
224 return 0; | 232 return 0; |
225 | 233 |
226 return equalIgnoringCase(m_private->getAttribute(HTMLNames::aria_readonlyAtt
r), "true"); | 234 return equalIgnoringCase(m_private->getAttribute(HTMLNames::aria_readonlyAtt
r), "true"); |
227 } | 235 } |
228 | 236 |
229 bool WebAXObject::isButtonStateMixed() const | 237 bool WebAXObject::isButtonStateMixed() const |
230 { | 238 { |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 m_private = object; | 1227 m_private = object; |
1220 return *this; | 1228 return *this; |
1221 } | 1229 } |
1222 | 1230 |
1223 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1231 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
1224 { | 1232 { |
1225 return m_private.get(); | 1233 return m_private.get(); |
1226 } | 1234 } |
1227 | 1235 |
1228 } // namespace blink | 1236 } // namespace blink |
OLD | NEW |