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

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

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 // 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 target.setFocused(true); 477 target.setFocused(true);
478 break; 478 break;
479 case ui::AX_ACTION_SET_SCROLL_OFFSET: 479 case ui::AX_ACTION_SET_SCROLL_OFFSET:
480 target.setScrollOffset( 480 target.setScrollOffset(
481 WebPoint(data.target_point.x(), data.target_point.y())); 481 WebPoint(data.target_point.x(), data.target_point.y()));
482 break; 482 break;
483 case ui::AX_ACTION_SET_SELECTION: 483 case ui::AX_ACTION_SET_SELECTION:
484 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset); 484 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset);
485 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE); 485 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE);
486 break; 486 break;
487 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT:
488 target.setSequentialFocusNavigationStartingPoint();
489 break;
487 case ui::AX_ACTION_SET_VALUE: 490 case ui::AX_ACTION_SET_VALUE:
488 target.setValue(data.value); 491 target.setValue(data.value);
489 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); 492 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED);
490 break; 493 break;
491 case ui::AX_ACTION_SHOW_CONTEXT_MENU: 494 case ui::AX_ACTION_SHOW_CONTEXT_MENU:
492 target.showContextMenu(); 495 target.showContextMenu();
493 break; 496 break;
494 case ui::AX_ACTION_NONE: 497 case ui::AX_ACTION_NONE:
495 NOTREACHED(); 498 NOTREACHED();
496 break; 499 break;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 628
626 const WebDocument& document = GetMainDocument(); 629 const WebDocument& document = GetMainDocument();
627 if (document.isNull()) 630 if (document.isNull())
628 return; 631 return;
629 632
630 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( 633 document.accessibilityObject().scrollToMakeVisibleWithSubFocus(
631 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); 634 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()));
632 } 635 }
633 636
634 } // namespace content 637 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698