| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2158 UserGestureToken::create(UserGestureToken::NewGesture)); | 2158 UserGestureToken::create(UserGestureToken::NewGesture)); |
| 2159 alterSliderValue(true); | 2159 alterSliderValue(true); |
| 2160 } | 2160 } |
| 2161 | 2161 |
| 2162 void AXNodeObject::decrement() { | 2162 void AXNodeObject::decrement() { |
| 2163 UserGestureIndicator gestureIndicator( | 2163 UserGestureIndicator gestureIndicator( |
| 2164 UserGestureToken::create(UserGestureToken::NewGesture)); | 2164 UserGestureToken::create(UserGestureToken::NewGesture)); |
| 2165 alterSliderValue(false); | 2165 alterSliderValue(false); |
| 2166 } | 2166 } |
| 2167 | 2167 |
| 2168 void AXNodeObject::setSequentialFocusNavigationStartingPoint() { |
| 2169 if (!getNode()) |
| 2170 return; |
| 2171 |
| 2172 getNode()->document().setSequentialFocusNavigationStartingPoint(getNode()); |
| 2173 } |
| 2174 |
| 2168 void AXNodeObject::childrenChanged() { | 2175 void AXNodeObject::childrenChanged() { |
| 2169 // This method is meant as a quick way of marking a portion of the | 2176 // This method is meant as a quick way of marking a portion of the |
| 2170 // accessibility tree dirty. | 2177 // accessibility tree dirty. |
| 2171 if (!getNode() && !getLayoutObject()) | 2178 if (!getNode() && !getLayoutObject()) |
| 2172 return; | 2179 return; |
| 2173 | 2180 |
| 2174 // If this is not part of the accessibility tree because an ancestor | 2181 // If this is not part of the accessibility tree because an ancestor |
| 2175 // has only presentational children, invalidate this object's children but | 2182 // has only presentational children, invalidate this object's children but |
| 2176 // skip sending a notification and skip walking up the ancestors. | 2183 // skip sending a notification and skip walking up the ancestors. |
| 2177 if (ancestorForWhichThisIsAPresentationalChild()) { | 2184 if (ancestorForWhichThisIsAPresentationalChild()) { |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 } | 2961 } |
| 2955 return placeholder; | 2962 return placeholder; |
| 2956 } | 2963 } |
| 2957 | 2964 |
| 2958 DEFINE_TRACE(AXNodeObject) { | 2965 DEFINE_TRACE(AXNodeObject) { |
| 2959 visitor->trace(m_node); | 2966 visitor->trace(m_node); |
| 2960 AXObject::trace(visitor); | 2967 AXObject::trace(visitor); |
| 2961 } | 2968 } |
| 2962 | 2969 |
| 2963 } // namespace blink | 2970 } // namespace blink |
| OLD | NEW |