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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 874893003: Handles aria-dropeffect after getting its value from blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 5 years, 10 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 (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/browser/accessibility/browser_accessibility_win.h" 5 #include "content/browser/accessibility/browser_accessibility_win.h"
6 6
7 #include <UIAutomationClient.h> 7 #include <UIAutomationClient.h>
8 #include <UIAutomationCoreApi.h> 8 #include <UIAutomationCoreApi.h>
9 9
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 2964
2965 InitRoleAndState(); 2965 InitRoleAndState();
2966 2966
2967 win_attributes_->ia2_attributes.clear(); 2967 win_attributes_->ia2_attributes.clear();
2968 2968
2969 // Expose autocomplete attribute for combobox and textbox. 2969 // Expose autocomplete attribute for combobox and textbox.
2970 StringAttributeToIA2(ui::AX_ATTR_AUTO_COMPLETE, "autocomplete"); 2970 StringAttributeToIA2(ui::AX_ATTR_AUTO_COMPLETE, "autocomplete");
2971 2971
2972 // Expose the "display" and "tag" attributes. 2972 // Expose the "display" and "tag" attributes.
2973 StringAttributeToIA2(ui::AX_ATTR_DISPLAY, "display"); 2973 StringAttributeToIA2(ui::AX_ATTR_DISPLAY, "display");
2974 StringAttributeToIA2(ui::AX_ATTR_DROPEFFECT, "dropeffect");
2974 StringAttributeToIA2(ui::AX_ATTR_TEXT_INPUT_TYPE, "text-input-type"); 2975 StringAttributeToIA2(ui::AX_ATTR_TEXT_INPUT_TYPE, "text-input-type");
2975 StringAttributeToIA2(ui::AX_ATTR_HTML_TAG, "tag"); 2976 StringAttributeToIA2(ui::AX_ATTR_HTML_TAG, "tag");
2976 StringAttributeToIA2(ui::AX_ATTR_ROLE, "xml-roles"); 2977 StringAttributeToIA2(ui::AX_ATTR_ROLE, "xml-roles");
2977 2978
2978 // Expose "level" attribute for headings, trees, etc. 2979 // Expose "level" attribute for headings, trees, etc.
2979 IntAttributeToIA2(ui::AX_ATTR_HIERARCHICAL_LEVEL, "level"); 2980 IntAttributeToIA2(ui::AX_ATTR_HIERARCHICAL_LEVEL, "level");
2980 2981
2981 // Expose the set size and position in set for listbox options. 2982 // Expose the set size and position in set for listbox options.
2982 if (GetRole() == ui::AX_ROLE_LIST_BOX_OPTION && 2983 if (GetRole() == ui::AX_ROLE_LIST_BOX_OPTION &&
2983 GetParent() && 2984 GetParent() &&
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
4089 ia2_role = ia_role; 4090 ia2_role = ia_role;
4090 4091
4091 win_attributes_->ia_role = ia_role; 4092 win_attributes_->ia_role = ia_role;
4092 win_attributes_->ia_state = ia_state; 4093 win_attributes_->ia_state = ia_state;
4093 win_attributes_->role_name = role_name; 4094 win_attributes_->role_name = role_name;
4094 win_attributes_->ia2_role = ia2_role; 4095 win_attributes_->ia2_role = ia2_role;
4095 win_attributes_->ia2_state = ia2_state; 4096 win_attributes_->ia2_state = ia2_state;
4096 } 4097 }
4097 4098
4098 } // namespace content 4099 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698