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

Unified Diff: content/renderer/accessibility/render_accessibility_impl.cc

Issue 2447013009: Implement Increment and Decrement accessible actions (Closed)
Patch Set: Change to make test pass on Android 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/accessibility/render_accessibility_impl.cc
diff --git a/content/renderer/accessibility/render_accessibility_impl.cc b/content/renderer/accessibility/render_accessibility_impl.cc
index 3f301547b698394b2575324448c71be4717bd885..d74d873bd1685aaf4d9aec10abf97d6bf1b2e05d 100644
--- a/content/renderer/accessibility/render_accessibility_impl.cc
+++ b/content/renderer/accessibility/render_accessibility_impl.cc
@@ -450,12 +450,18 @@ void RenderAccessibilityImpl::OnPerformAction(
WebAXObject focus = document.accessibilityObjectFromID(data.focus_node_id);
switch (data.action) {
+ case ui::AX_ACTION_DECREMENT:
+ target.decrement();
+ break;
case ui::AX_ACTION_DO_DEFAULT:
target.performDefaultAction();
break;
case ui::AX_ACTION_HIT_TEST:
OnHitTest(data.target_point);
break;
+ case ui::AX_ACTION_INCREMENT:
+ target.increment();
+ break;
case ui::AX_ACTION_SCROLL_TO_MAKE_VISIBLE:
target.scrollToMakeVisibleWithSubFocus(
WebRect(data.target_rect.x(), data.target_rect.y(),
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698