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/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 <algorithm> | 10 #include <algorithm> |
(...skipping 4594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4605 break; | 4605 break; |
4606 case ui::AX_ROLE_TEXT_FIELD: | 4606 case ui::AX_ROLE_TEXT_FIELD: |
4607 case ui::AX_ROLE_SEARCH_BOX: | 4607 case ui::AX_ROLE_SEARCH_BOX: |
4608 ia_role = ROLE_SYSTEM_TEXT; | 4608 ia_role = ROLE_SYSTEM_TEXT; |
4609 if (HasState(ui::AX_STATE_MULTILINE)) | 4609 if (HasState(ui::AX_STATE_MULTILINE)) |
4610 ia2_state |= IA2_STATE_MULTI_LINE; | 4610 ia2_state |= IA2_STATE_MULTI_LINE; |
4611 else | 4611 else |
4612 ia2_state |= IA2_STATE_SINGLE_LINE; | 4612 ia2_state |= IA2_STATE_SINGLE_LINE; |
4613 ia2_state |= IA2_STATE_SELECTABLE_TEXT; | 4613 ia2_state |= IA2_STATE_SELECTABLE_TEXT; |
4614 break; | 4614 break; |
| 4615 case ui::AX_ROLE_ABBR: |
4615 case ui::AX_ROLE_TIME: | 4616 case ui::AX_ROLE_TIME: |
4616 role_name = html_tag; | 4617 role_name = html_tag; |
4617 ia_role = ROLE_SYSTEM_TEXT; | 4618 ia_role = ROLE_SYSTEM_TEXT; |
4618 ia2_role = IA2_ROLE_TEXT_FRAME; | 4619 ia2_role = IA2_ROLE_TEXT_FRAME; |
4619 break; | 4620 break; |
4620 case ui::AX_ROLE_TIMER: | 4621 case ui::AX_ROLE_TIMER: |
4621 ia_role = ROLE_SYSTEM_CLOCK; | 4622 ia_role = ROLE_SYSTEM_CLOCK; |
4622 ia_state |= STATE_SYSTEM_READONLY; | 4623 ia_state |= STATE_SYSTEM_READONLY; |
4623 break; | 4624 break; |
4624 case ui::AX_ROLE_TOOLBAR: | 4625 case ui::AX_ROLE_TOOLBAR: |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4681 ia2_role = ia_role; | 4682 ia2_role = ia_role; |
4682 | 4683 |
4683 win_attributes_->ia_role = ia_role; | 4684 win_attributes_->ia_role = ia_role; |
4684 win_attributes_->ia_state = ia_state; | 4685 win_attributes_->ia_state = ia_state; |
4685 win_attributes_->role_name = role_name; | 4686 win_attributes_->role_name = role_name; |
4686 win_attributes_->ia2_role = ia2_role; | 4687 win_attributes_->ia2_role = ia2_role; |
4687 win_attributes_->ia2_state = ia2_state; | 4688 win_attributes_->ia2_state = ia2_state; |
4688 } | 4689 } |
4689 | 4690 |
4690 } // namespace content | 4691 } // namespace content |
OLD | NEW |