Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 2447773002: Use setSequentialFocusNavigationStartingPoint in ChromeVox (Closed)
Patch Set: Links or controls Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 void AXNodeObject::decrement() { 2163 void AXNodeObject::decrement() {
2164 UserGestureIndicator gestureIndicator(DocumentUserGestureToken::create( 2164 UserGestureIndicator gestureIndicator(DocumentUserGestureToken::create(
2165 getDocument(), UserGestureToken::NewGesture)); 2165 getDocument(), UserGestureToken::NewGesture));
2166 alterSliderValue(false); 2166 alterSliderValue(false);
2167 } 2167 }
2168 2168
2169 void AXNodeObject::setSequentialFocusNavigationStartingPoint() { 2169 void AXNodeObject::setSequentialFocusNavigationStartingPoint() {
2170 if (!getNode()) 2170 if (!getNode())
2171 return; 2171 return;
2172 2172
2173 getNode()->document().clearFocusedElement();
2173 getNode()->document().setSequentialFocusNavigationStartingPoint(getNode()); 2174 getNode()->document().setSequentialFocusNavigationStartingPoint(getNode());
2174 } 2175 }
2175 2176
2176 void AXNodeObject::childrenChanged() { 2177 void AXNodeObject::childrenChanged() {
2177 // This method is meant as a quick way of marking a portion of the 2178 // This method is meant as a quick way of marking a portion of the
2178 // accessibility tree dirty. 2179 // accessibility tree dirty.
2179 if (!getNode() && !getLayoutObject()) 2180 if (!getNode() && !getLayoutObject())
2180 return; 2181 return;
2181 2182
2182 // If this is not part of the accessibility tree because an ancestor 2183 // If this is not part of the accessibility tree because an ancestor
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
2962 } 2963 }
2963 return placeholder; 2964 return placeholder;
2964 } 2965 }
2965 2966
2966 DEFINE_TRACE(AXNodeObject) { 2967 DEFINE_TRACE(AXNodeObject) {
2967 visitor->trace(m_node); 2968 visitor->trace(m_node);
2968 AXObject::trace(visitor); 2969 AXObject::trace(visitor);
2969 } 2970 }
2970 2971
2971 } // namespace blink 2972 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698