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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 } | 1243 } |
1244 | 1244 |
1245 WebAXSortDirection WebAXObject::sortDirection() const | 1245 WebAXSortDirection WebAXObject::sortDirection() const |
1246 { | 1246 { |
1247 if (isDetached()) | 1247 if (isDetached()) |
1248 return WebAXSortDirectionUndefined; | 1248 return WebAXSortDirectionUndefined; |
1249 | 1249 |
1250 return static_cast<WebAXSortDirection>(m_private->sortDirection()); | 1250 return static_cast<WebAXSortDirection>(m_private->sortDirection()); |
1251 } | 1251 } |
1252 | 1252 |
| 1253 void WebAXObject::rowHeadersForCell(WebVector<WebAXObject>& rowHeaders) const |
| 1254 { |
| 1255 if (isDetached()) |
| 1256 return; |
| 1257 |
| 1258 if (!m_private->isTableCell()) |
| 1259 return; |
| 1260 |
| 1261 AXObject::AccessibilityChildrenVector headers; |
| 1262 toAXTableCell(m_private.get())->rowHeadersForCell(headers); |
| 1263 |
| 1264 size_t headerCount = headers.size(); |
| 1265 WebVector<WebAXObject> result(headerCount); |
| 1266 |
| 1267 for (size_t i = 0; i < headerCount; i++) |
| 1268 result[i] = WebAXObject(headers[i]); |
| 1269 |
| 1270 rowHeaders.swap(result); |
| 1271 } |
| 1272 |
| 1273 void WebAXObject::columnHeadersForCell(WebVector<WebAXObject>& columnHeaders) co
nst |
| 1274 { |
| 1275 if (isDetached()) |
| 1276 return; |
| 1277 |
| 1278 if (!m_private->isTableCell()) |
| 1279 return; |
| 1280 |
| 1281 AXObject::AccessibilityChildrenVector headers; |
| 1282 toAXTableCell(m_private.get())->columnHeadersForCell(headers); |
| 1283 |
| 1284 size_t headerCount = headers.size(); |
| 1285 WebVector<WebAXObject> result(headerCount); |
| 1286 |
| 1287 for (size_t i = 0; i < headerCount; i++) |
| 1288 result[i] = WebAXObject(headers[i]); |
| 1289 |
| 1290 columnHeaders.swap(result); |
| 1291 } |
| 1292 |
1253 void WebAXObject::loadInlineTextBoxes() const | 1293 void WebAXObject::loadInlineTextBoxes() const |
1254 { | 1294 { |
1255 if (isDetached()) | 1295 if (isDetached()) |
1256 return; | 1296 return; |
1257 | 1297 |
1258 m_private->loadInlineTextBoxes(); | 1298 m_private->loadInlineTextBoxes(); |
1259 } | 1299 } |
1260 | 1300 |
1261 WebAXTextDirection WebAXObject::textDirection() const | 1301 WebAXTextDirection WebAXObject::textDirection() const |
1262 { | 1302 { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 m_private = object; | 1367 m_private = object; |
1328 return *this; | 1368 return *this; |
1329 } | 1369 } |
1330 | 1370 |
1331 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1371 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
1332 { | 1372 { |
1333 return m_private.get(); | 1373 return m_private.get(); |
1334 } | 1374 } |
1335 | 1375 |
1336 } // namespace blink | 1376 } // namespace blink |
OLD | NEW |