Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 443 | 443 |
| 444 WebAXObject root = document.accessibilityObject(); | 444 WebAXObject root = document.accessibilityObject(); |
| 445 if (!root.updateLayoutAndCheckValidity()) | 445 if (!root.updateLayoutAndCheckValidity()) |
| 446 return; | 446 return; |
| 447 | 447 |
| 448 WebAXObject target = document.accessibilityObjectFromID(data.target_node_id); | 448 WebAXObject target = document.accessibilityObjectFromID(data.target_node_id); |
| 449 WebAXObject anchor = document.accessibilityObjectFromID(data.anchor_node_id); | 449 WebAXObject anchor = document.accessibilityObjectFromID(data.anchor_node_id); |
| 450 WebAXObject focus = document.accessibilityObjectFromID(data.focus_node_id); | 450 WebAXObject focus = document.accessibilityObjectFromID(data.focus_node_id); |
| 451 | 451 |
| 452 switch (data.action) { | 452 switch (data.action) { |
| 453 case ui::AX_ACTION_BLUR: | |
| 454 // TODO(dmazzoni): Implement this. | |
|
dmazzoni
2016/11/21 04:53:38
It should be as simple as this:
target.setFocused
Patti Lor
2016/11/21 23:24:39
Done.
| |
| 455 NOTIMPLEMENTED(); | |
| 456 break; | |
| 453 case ui::AX_ACTION_DECREMENT: | 457 case ui::AX_ACTION_DECREMENT: |
| 454 target.decrement(); | 458 target.decrement(); |
| 455 break; | 459 break; |
| 456 case ui::AX_ACTION_DO_DEFAULT: | 460 case ui::AX_ACTION_DO_DEFAULT: |
| 457 target.performDefaultAction(); | 461 target.performDefaultAction(); |
| 458 break; | 462 break; |
| 459 case ui::AX_ACTION_HIT_TEST: | 463 case ui::AX_ACTION_HIT_TEST: |
| 460 OnHitTest(data.target_point); | 464 OnHitTest(data.target_point); |
| 461 break; | 465 break; |
| 462 case ui::AX_ACTION_INCREMENT: | 466 case ui::AX_ACTION_INCREMENT: |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 635 | 639 |
| 636 const WebDocument& document = GetMainDocument(); | 640 const WebDocument& document = GetMainDocument(); |
| 637 if (document.isNull()) | 641 if (document.isNull()) |
| 638 return; | 642 return; |
| 639 | 643 |
| 640 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( | 644 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( |
| 641 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); | 645 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); |
| 642 } | 646 } |
| 643 | 647 |
| 644 } // namespace content | 648 } // namespace content |
| OLD | NEW |