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

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

Issue 2479893002: Revert of Use setSequentialFocusNavigationStartingPoint in ChromeVox (Closed)
Patch Set: 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();
2174 getNode()->document().setSequentialFocusNavigationStartingPoint(getNode()); 2173 getNode()->document().setSequentialFocusNavigationStartingPoint(getNode());
2175 } 2174 }
2176 2175
2177 void AXNodeObject::childrenChanged() { 2176 void AXNodeObject::childrenChanged() {
2178 // This method is meant as a quick way of marking a portion of the 2177 // This method is meant as a quick way of marking a portion of the
2179 // accessibility tree dirty. 2178 // accessibility tree dirty.
2180 if (!getNode() && !getLayoutObject()) 2179 if (!getNode() && !getLayoutObject())
2181 return; 2180 return;
2182 2181
2183 // If this is not part of the accessibility tree because an ancestor 2182 // If this is not part of the accessibility tree because an ancestor
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
2963 } 2962 }
2964 return placeholder; 2963 return placeholder;
2965 } 2964 }
2966 2965
2967 DEFINE_TRACE(AXNodeObject) { 2966 DEFINE_TRACE(AXNodeObject) {
2968 visitor->trace(m_node); 2967 visitor->trace(m_node);
2969 AXObject::trace(visitor); 2968 AXObject::trace(visitor);
2970 } 2969 }
2971 2970
2972 } // namespace blink 2971 } // namespace blink
OLDNEW
« no previous file with comments | « content/renderer/accessibility/render_accessibility_impl.cc ('k') | ui/accessibility/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698