| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple 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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 void AXObject::setScrollOffset(const IntPoint& offset) const | 1342 void AXObject::setScrollOffset(const IntPoint& offset) const |
| 1343 { | 1343 { |
| 1344 ScrollableArea* area = getScrollableAreaIfScrollable(); | 1344 ScrollableArea* area = getScrollableAreaIfScrollable(); |
| 1345 if (!area) | 1345 if (!area) |
| 1346 return; | 1346 return; |
| 1347 | 1347 |
| 1348 // TODO(bokan): This should potentially be a UserScroll. | 1348 // TODO(bokan): This should potentially be a UserScroll. |
| 1349 area->setScrollPosition(DoublePoint(offset.x(), offset.y()), ProgrammaticScr
oll); | 1349 area->setScrollPosition(DoublePoint(offset.x(), offset.y()), ProgrammaticScr
oll); |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 void AXObject::getRelativeBounds(AXObject** container, FloatRect& boundsInContai
ner, SkMatrix44& containerTransform) const |
| 1353 { |
| 1354 *container = nullptr; |
| 1355 boundsInContainer = FloatRect(); |
| 1356 containerTransform.setIdentity(); |
| 1357 } |
| 1358 |
| 1352 // | 1359 // |
| 1353 // Modify or take an action on an object. | 1360 // Modify or take an action on an object. |
| 1354 // | 1361 // |
| 1355 | 1362 |
| 1356 bool AXObject::press() const | 1363 bool AXObject::press() const |
| 1357 { | 1364 { |
| 1358 Element* actionElem = actionElement(); | 1365 Element* actionElem = actionElement(); |
| 1359 if (!actionElem) | 1366 if (!actionElem) |
| 1360 return false; | 1367 return false; |
| 1361 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); | 1368 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1743 | 1750 |
| 1744 DEFINE_TRACE(AXObject) | 1751 DEFINE_TRACE(AXObject) |
| 1745 { | 1752 { |
| 1746 visitor->trace(m_children); | 1753 visitor->trace(m_children); |
| 1747 visitor->trace(m_parent); | 1754 visitor->trace(m_parent); |
| 1748 visitor->trace(m_cachedLiveRegionRoot); | 1755 visitor->trace(m_cachedLiveRegionRoot); |
| 1749 visitor->trace(m_axObjectCache); | 1756 visitor->trace(m_axObjectCache); |
| 1750 } | 1757 } |
| 1751 | 1758 |
| 1752 } // namespace blink | 1759 } // namespace blink |
| OLD | NEW |