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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 bool WebAccessibilityObject::canSetValueAttribute() const | 95 bool WebAccessibilityObject::canSetValueAttribute() const |
96 { | 96 { |
97 if (!m_private) | 97 if (!m_private) |
98 return false; | 98 return false; |
99 | 99 |
100 m_private->updateBackingStore(); | 100 m_private->updateBackingStore(); |
101 return m_private->canSetValueAttribute(); | 101 return m_private->canSetValueAttribute(); |
102 } | 102 } |
103 | 103 |
| 104 bool WebAccessibilityObject::isValid() const |
| 105 { |
| 106 if (!m_private) |
| 107 return false; |
| 108 |
| 109 m_private->updateBackingStore(); |
| 110 return m_private->axObjectID(); |
| 111 } |
| 112 |
104 unsigned WebAccessibilityObject::childCount() const | 113 unsigned WebAccessibilityObject::childCount() const |
105 { | 114 { |
106 if (!m_private) | 115 if (!m_private) |
107 return 0; | 116 return 0; |
108 | 117 |
109 m_private->updateBackingStore(); | 118 m_private->updateBackingStore(); |
110 return m_private->children().size(); | 119 return m_private->children().size(); |
111 } | 120 } |
112 | 121 |
113 WebAccessibilityObject WebAccessibilityObject::childAt(unsigned index) const | 122 WebAccessibilityObject WebAccessibilityObject::childAt(unsigned index) const |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 493 |
485 void WebAccessibilityObject::assign(WebAccessibilityObjectPrivate* p) | 494 void WebAccessibilityObject::assign(WebAccessibilityObjectPrivate* p) |
486 { | 495 { |
487 // p is already ref'd for us by the caller | 496 // p is already ref'd for us by the caller |
488 if (m_private) | 497 if (m_private) |
489 m_private->deref(); | 498 m_private->deref(); |
490 m_private = p; | 499 m_private = p; |
491 } | 500 } |
492 | 501 |
493 } // namespace WebKit | 502 } // namespace WebKit |
OLD | NEW |