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

Side by Side Diff: content/renderer/accessibility/render_accessibility_impl.cc

Issue 2447773002: 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/accessibility/render_accessibility_impl.h" 5 #include "content/renderer/accessibility/render_accessibility_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 target.setFocused(true); 475 target.setFocused(true);
476 break; 476 break;
477 case ui::AX_ACTION_SET_SCROLL_OFFSET: 477 case ui::AX_ACTION_SET_SCROLL_OFFSET:
478 target.setScrollOffset( 478 target.setScrollOffset(
479 WebPoint(data.target_point.x(), data.target_point.y())); 479 WebPoint(data.target_point.x(), data.target_point.y()));
480 break; 480 break;
481 case ui::AX_ACTION_SET_SELECTION: 481 case ui::AX_ACTION_SET_SELECTION:
482 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset); 482 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset);
483 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE); 483 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE);
484 break; 484 break;
485 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT:
486 target.setSequentialFocusNavigationStartingPoint();
487 break;
485 case ui::AX_ACTION_SET_VALUE: 488 case ui::AX_ACTION_SET_VALUE:
486 target.setValue(data.value); 489 target.setValue(data.value);
487 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); 490 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED);
488 break; 491 break;
489 case ui::AX_ACTION_SHOW_CONTEXT_MENU: 492 case ui::AX_ACTION_SHOW_CONTEXT_MENU:
490 target.showContextMenu(); 493 target.showContextMenu();
491 break; 494 break;
492 case ui::AX_ACTION_NONE: 495 case ui::AX_ACTION_NONE:
493 NOTREACHED(); 496 NOTREACHED();
494 break; 497 break;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 626
624 const WebDocument& document = GetMainDocument(); 627 const WebDocument& document = GetMainDocument();
625 if (document.isNull()) 628 if (document.isNull())
626 return; 629 return;
627 630
628 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( 631 document.accessibilityObject().scrollToMakeVisibleWithSubFocus(
629 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); 632 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()));
630 } 633 }
631 634
632 } // namespace content 635 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698