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

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

Issue 2890723003: Slider events with valuetext (Closed)
Patch Set: Fix test Created 3 years, 7 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/blink_ax_tree_source.h" 5 #include "content/renderer/accessibility/blink_ax_tree_source.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 src.ContainerLiveRegionAtomic()); 647 src.ContainerLiveRegionAtomic());
648 dst->AddBoolAttribute(ui::AX_ATTR_CONTAINER_LIVE_BUSY, 648 dst->AddBoolAttribute(ui::AX_ATTR_CONTAINER_LIVE_BUSY,
649 src.ContainerLiveRegionBusy()); 649 src.ContainerLiveRegionBusy());
650 dst->AddStringAttribute(ui::AX_ATTR_CONTAINER_LIVE_STATUS, 650 dst->AddStringAttribute(ui::AX_ATTR_CONTAINER_LIVE_STATUS,
651 src.ContainerLiveRegionStatus().Utf8()); 651 src.ContainerLiveRegionStatus().Utf8());
652 dst->AddStringAttribute(ui::AX_ATTR_CONTAINER_LIVE_RELEVANT, 652 dst->AddStringAttribute(ui::AX_ATTR_CONTAINER_LIVE_RELEVANT,
653 src.ContainerLiveRegionRelevant().Utf8()); 653 src.ContainerLiveRegionRelevant().Utf8());
654 } 654 }
655 655
656 if (dst->role == ui::AX_ROLE_PROGRESS_INDICATOR || 656 if (dst->role == ui::AX_ROLE_PROGRESS_INDICATOR ||
657 dst->role == ui::AX_ROLE_METER || 657 dst->role == ui::AX_ROLE_METER || dst->role == ui::AX_ROLE_SCROLL_BAR ||
658 dst->role == ui::AX_ROLE_SCROLL_BAR ||
659 dst->role == ui::AX_ROLE_SLIDER || 658 dst->role == ui::AX_ROLE_SLIDER ||
660 dst->role == ui::AX_ROLE_SPIN_BUTTON) { 659 dst->role == ui::AX_ROLE_SPIN_BUTTON ||
660 (dst->role == ui::AX_ROLE_SPLITTER && src.CanSetFocusAttribute())) {
661 dst->AddFloatAttribute(ui::AX_ATTR_VALUE_FOR_RANGE, src.ValueForRange()); 661 dst->AddFloatAttribute(ui::AX_ATTR_VALUE_FOR_RANGE, src.ValueForRange());
662 dst->AddFloatAttribute(ui::AX_ATTR_MAX_VALUE_FOR_RANGE, 662 dst->AddFloatAttribute(ui::AX_ATTR_MAX_VALUE_FOR_RANGE,
663 src.MaxValueForRange()); 663 src.MaxValueForRange());
664 dst->AddFloatAttribute(ui::AX_ATTR_MIN_VALUE_FOR_RANGE, 664 dst->AddFloatAttribute(ui::AX_ATTR_MIN_VALUE_FOR_RANGE,
665 src.MinValueForRange()); 665 src.MinValueForRange());
666 } 666 }
667 667
668 if (dst->role == ui::AX_ROLE_DIALOG || 668 if (dst->role == ui::AX_ROLE_DIALOG ||
669 dst->role == ui::AX_ROLE_ALERT_DIALOG) { 669 dst->role == ui::AX_ROLE_ALERT_DIALOG) {
670 dst->AddBoolAttribute(ui::AX_ATTR_MODAL, src.IsModal()); 670 dst->AddBoolAttribute(ui::AX_ATTR_MODAL, src.IsModal());
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 return WebAXObject(); 890 return WebAXObject();
891 891
892 WebDocument document = render_frame_->GetWebFrame()->GetDocument(); 892 WebDocument document = render_frame_->GetWebFrame()->GetDocument();
893 if (!document.IsNull()) 893 if (!document.IsNull())
894 return document.AccessibilityObject(); 894 return document.AccessibilityObject();
895 895
896 return WebAXObject(); 896 return WebAXObject();
897 } 897 }
898 898
899 } // namespace content 899 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698