OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014, Google Inc. All rights reserved. | 2 * Copyright (C) 2014, 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 | 1303 |
1304 String AXObjectCacheImpl::computedNameForNode(Node* node) | 1304 String AXObjectCacheImpl::computedNameForNode(Node* node) |
1305 { | 1305 { |
1306 AXObject* obj = getOrCreate(node); | 1306 AXObject* obj = getOrCreate(node); |
1307 if (!obj) | 1307 if (!obj) |
1308 return ""; | 1308 return ""; |
1309 | 1309 |
1310 return obj->computedName(); | 1310 return obj->computedName(); |
1311 } | 1311 } |
1312 | 1312 |
1313 void AXObjectCacheImpl::onTouchAccessibilityHover(const IntPoint& location) | 1313 void AXObjectCacheImpl::onAccessibilityMouseDown(const IntPoint& location) |
1314 { | 1314 { |
1315 AXObject* hit = root()->accessibilityHitTest(location); | 1315 AXObject* hit = root()->accessibilityHitTest(location); |
1316 if (hit) | 1316 if (hit) |
1317 postPlatformNotification(hit, AXHover); | 1317 postPlatformNotification(hit, AXMousePressed); |
| 1318 } |
| 1319 |
| 1320 void AXObjectCacheImpl::onAccessibilityMouseUp(const IntPoint& location) |
| 1321 { |
| 1322 AXObject* hit = root()->accessibilityHitTest(location); |
| 1323 if (hit) |
| 1324 postPlatformNotification(hit, AXMouseReleased); |
| 1325 } |
| 1326 |
| 1327 void AXObjectCacheImpl::onAccessibilityMouseMove(const IntPoint& location) |
| 1328 { |
| 1329 AXObject* hit = root()->accessibilityHitTest(location); |
| 1330 if (hit) |
| 1331 postPlatformNotification(hit, AXMouseMoved); |
| 1332 } |
| 1333 |
| 1334 void AXObjectCacheImpl::onAccessibilityMouseEnter(const IntPoint& location) |
| 1335 { |
| 1336 AXObject* hit = root()->accessibilityHitTest(location); |
| 1337 if (hit) |
| 1338 postPlatformNotification(hit, AXMouseEntered); |
| 1339 } |
| 1340 |
| 1341 void AXObjectCacheImpl::onAccessibilityMouseLeave(const IntPoint& location) |
| 1342 { |
| 1343 AXObject* hit = root()->accessibilityHitTest(location); |
| 1344 if (hit) |
| 1345 postPlatformNotification(hit, AXMouseExited); |
1318 } | 1346 } |
1319 | 1347 |
1320 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) | 1348 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) |
1321 { | 1349 { |
1322 AXObject* obj = getOrCreate(element); | 1350 AXObject* obj = getOrCreate(element); |
1323 if (!obj) | 1351 if (!obj) |
1324 return; | 1352 return; |
1325 | 1353 |
1326 obj->setElementRect(rect); | 1354 obj->setElementRect(rect); |
1327 } | 1355 } |
1328 | 1356 |
1329 DEFINE_TRACE(AXObjectCacheImpl) | 1357 DEFINE_TRACE(AXObjectCacheImpl) |
1330 { | 1358 { |
1331 #if ENABLE(OILPAN) | 1359 #if ENABLE(OILPAN) |
1332 visitor->trace(m_document); | 1360 visitor->trace(m_document); |
1333 visitor->trace(m_widgetObjectMapping); | 1361 visitor->trace(m_widgetObjectMapping); |
1334 visitor->trace(m_nodeObjectMapping); | 1362 visitor->trace(m_nodeObjectMapping); |
1335 #endif | 1363 #endif |
1336 | 1364 |
1337 visitor->trace(m_objects); | 1365 visitor->trace(m_objects); |
1338 visitor->trace(m_notificationsToPost); | 1366 visitor->trace(m_notificationsToPost); |
1339 | 1367 |
1340 AXObjectCache::trace(visitor); | 1368 AXObjectCache::trace(visitor); |
1341 } | 1369 } |
1342 | 1370 |
1343 } // namespace blink | 1371 } // namespace blink |
OLD | NEW |