Chromium Code Reviews| 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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1079 | 1079 |
| 1080 return IntPoint(area->maximumScrollPosition().x(), area->maximumScrollPositi on().y()); | 1080 return IntPoint(area->maximumScrollPosition().x(), area->maximumScrollPositi on().y()); |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 void AXObject::setScrollOffset(const IntPoint& offset) const | 1083 void AXObject::setScrollOffset(const IntPoint& offset) const |
| 1084 { | 1084 { |
| 1085 ScrollableArea* area = getScrollableAreaIfScrollable(); | 1085 ScrollableArea* area = getScrollableAreaIfScrollable(); |
| 1086 if (!area) | 1086 if (!area) |
| 1087 return; | 1087 return; |
| 1088 | 1088 |
| 1089 area->setScrollPosition(DoublePoint(offset.x(), offset.y())); | 1089 area->setScrollPosition(DoublePoint(offset.x(), offset.y()), ProgrammaticScr oll); |
|
dmazzoni
2015/06/09 19:40:23
What are the implications of this being a programm
bokan
2015/06/09 20:03:01
Hmm...right now the only implication here is which
| |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 // | 1092 // |
| 1093 // Modify or take an action on an object. | 1093 // Modify or take an action on an object. |
| 1094 // | 1094 // |
| 1095 | 1095 |
| 1096 bool AXObject::press() const | 1096 bool AXObject::press() const |
| 1097 { | 1097 { |
| 1098 Element* actionElem = actionElement(); | 1098 Element* actionElem = actionElement(); |
| 1099 if (!actionElem) | 1099 if (!actionElem) |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1471 } | 1471 } |
| 1472 | 1472 |
| 1473 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) | 1473 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) |
| 1474 { | 1474 { |
| 1475 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo leNameVector(); | 1475 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo leNameVector(); |
| 1476 | 1476 |
| 1477 return internalRoleNameVector->at(role); | 1477 return internalRoleNameVector->at(role); |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 } // namespace blink | 1480 } // namespace blink |
| OLD | NEW |