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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 | 268 |
269 bool WebAXObject::isEnabled() const | 269 bool WebAXObject::isEnabled() const |
270 { | 270 { |
271 if (isDetached()) | 271 if (isDetached()) |
272 return 0; | 272 return 0; |
273 | 273 |
274 return m_private->isEnabled(); | 274 return m_private->isEnabled(); |
275 } | 275 } |
276 | 276 |
277 bool WebAXObject::isExpanded() const | |
278 { | |
279 if (isDetached()) | |
280 return 0; | |
281 | |
282 return m_private->isExpanded(); | |
283 } | |
284 | |
285 bool WebAXObject::isFocused() const | 277 bool WebAXObject::isFocused() const |
286 { | 278 { |
287 if (isDetached()) | 279 if (isDetached()) |
288 return 0; | 280 return 0; |
289 | 281 |
290 return m_private->isFocused(); | 282 return m_private->isFocused(); |
291 } | 283 } |
292 | 284 |
293 bool WebAXObject::isHovered() const | 285 bool WebAXObject::isHovered() const |
294 { | 286 { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 } | 451 } |
460 | 452 |
461 bool WebAXObject::ariaHasPopup() const | 453 bool WebAXObject::ariaHasPopup() const |
462 { | 454 { |
463 if (isDetached()) | 455 if (isDetached()) |
464 return 0; | 456 return 0; |
465 | 457 |
466 return m_private->ariaHasPopup(); | 458 return m_private->ariaHasPopup(); |
467 } | 459 } |
468 | 460 |
| 461 WebAXExpanded WebAXObject::ariaExpanded() const |
| 462 { |
| 463 if (isDetached()) |
| 464 return WebAXExpandedUndefined; |
| 465 |
| 466 return static_cast<WebAXExpanded>(m_private->ariaExpanded()); |
| 467 } |
| 468 |
469 bool WebAXObject::ariaFlowTo(WebVector<WebAXObject>& flowToElements) const | 469 bool WebAXObject::ariaFlowTo(WebVector<WebAXObject>& flowToElements) const |
470 { | 470 { |
471 if (isDetached()) | 471 if (isDetached()) |
472 return false; | 472 return false; |
473 | 473 |
474 AXObject::AccessibilityChildrenVector flowTo; | 474 AXObject::AccessibilityChildrenVector flowTo; |
475 m_private->ariaFlowToElements(flowTo); | 475 m_private->ariaFlowToElements(flowTo); |
476 | 476 |
477 WebVector<WebAXObject> result(flowTo.size()); | 477 WebVector<WebAXObject> result(flowTo.size()); |
478 for (size_t i = 0; i < flowTo.size(); i++) | 478 for (size_t i = 0; i < flowTo.size(); i++) |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 m_private = object; | 1219 m_private = object; |
1220 return *this; | 1220 return *this; |
1221 } | 1221 } |
1222 | 1222 |
1223 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1223 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
1224 { | 1224 { |
1225 return m_private.get(); | 1225 return m_private.get(); |
1226 } | 1226 } |
1227 | 1227 |
1228 } // namespace blink | 1228 } // namespace blink |
OLD | NEW |