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

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

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: 487 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT:
488 target.setSequentialFocusNavigationStartingPoint(); 488 target.setSequentialFocusNavigationStartingPoint();
489 break; 489 break;
490 case ui::AX_ACTION_SET_VALUE: 490 case ui::AX_ACTION_SET_VALUE:
491 target.setValue(data.value); 491 target.setValue(data.value);
492 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); 492 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED);
493 break; 493 break;
494 case ui::AX_ACTION_SHOW_CONTEXT_MENU: 494 case ui::AX_ACTION_SHOW_CONTEXT_MENU:
495 target.showContextMenu(); 495 target.showContextMenu();
496 break; 496 break;
497 case ui::AX_ACTION_REPLACE_SELECTED_TEXT:
497 case ui::AX_ACTION_NONE: 498 case ui::AX_ACTION_NONE:
498 NOTREACHED(); 499 NOTREACHED();
499 break; 500 break;
500 } 501 }
501 } 502 }
502 503
503 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { 504 void RenderAccessibilityImpl::OnEventsAck(int ack_token) {
504 // Ignore acks intended for a different or previous instance. 505 // Ignore acks intended for a different or previous instance.
505 if (ack_token_ != ack_token) 506 if (ack_token_ != ack_token)
506 return; 507 return;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 629
629 const WebDocument& document = GetMainDocument(); 630 const WebDocument& document = GetMainDocument();
630 if (document.isNull()) 631 if (document.isNull())
631 return; 632 return;
632 633
633 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( 634 document.accessibilityObject().scrollToMakeVisibleWithSubFocus(
634 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); 635 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()));
635 } 636 }
636 637
637 } // namespace content 638 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win_unittest.cc ('k') | ui/accessibility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698