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

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

Issue 780553002: Switch content/ to use AX_STATE_DISABLE instead of AX_STATE_ENABLED. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing Created 5 years, 8 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 3628 matching lines...) Expand 10 before | Expand all | Expand 10 after
3639 if (HasState(ui::AX_STATE_PROTECTED)) 3639 if (HasState(ui::AX_STATE_PROTECTED))
3640 ia_state |= STATE_SYSTEM_PROTECTED; 3640 ia_state |= STATE_SYSTEM_PROTECTED;
3641 if (HasState(ui::AX_STATE_REQUIRED)) 3641 if (HasState(ui::AX_STATE_REQUIRED))
3642 ia2_state |= IA2_STATE_REQUIRED; 3642 ia2_state |= IA2_STATE_REQUIRED;
3643 if (HasState(ui::AX_STATE_SELECTABLE)) 3643 if (HasState(ui::AX_STATE_SELECTABLE))
3644 ia_state |= STATE_SYSTEM_SELECTABLE; 3644 ia_state |= STATE_SYSTEM_SELECTABLE;
3645 if (HasState(ui::AX_STATE_SELECTED)) 3645 if (HasState(ui::AX_STATE_SELECTED))
3646 ia_state |= STATE_SYSTEM_SELECTED; 3646 ia_state |= STATE_SYSTEM_SELECTED;
3647 if (HasState(ui::AX_STATE_VISITED)) 3647 if (HasState(ui::AX_STATE_VISITED))
3648 ia_state |= STATE_SYSTEM_TRAVERSED; 3648 ia_state |= STATE_SYSTEM_TRAVERSED;
3649 if (!HasState(ui::AX_STATE_ENABLED)) 3649 if (HasState(ui::AX_STATE_DISABLED))
3650 ia_state |= STATE_SYSTEM_UNAVAILABLE; 3650 ia_state |= STATE_SYSTEM_UNAVAILABLE;
3651 if (HasState(ui::AX_STATE_VERTICAL)) 3651 if (HasState(ui::AX_STATE_VERTICAL))
3652 ia2_state |= IA2_STATE_VERTICAL; 3652 ia2_state |= IA2_STATE_VERTICAL;
3653 if (HasState(ui::AX_STATE_HORIZONTAL)) 3653 if (HasState(ui::AX_STATE_HORIZONTAL))
3654 ia2_state |= IA2_STATE_HORIZONTAL; 3654 ia2_state |= IA2_STATE_HORIZONTAL;
3655 if (HasState(ui::AX_STATE_VISITED)) 3655 if (HasState(ui::AX_STATE_VISITED))
3656 ia_state |= STATE_SYSTEM_TRAVERSED; 3656 ia_state |= STATE_SYSTEM_TRAVERSED;
3657 3657
3658 // Expose whether or not the mouse is over an element, but suppress 3658 // Expose whether or not the mouse is over an element, but suppress
3659 // this for tests because it can make the test results flaky depending 3659 // this for tests because it can make the test results flaky depending
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
4141 ia2_role = ia_role; 4141 ia2_role = ia_role;
4142 4142
4143 win_attributes_->ia_role = ia_role; 4143 win_attributes_->ia_role = ia_role;
4144 win_attributes_->ia_state = ia_state; 4144 win_attributes_->ia_state = ia_state;
4145 win_attributes_->role_name = role_name; 4145 win_attributes_->role_name = role_name;
4146 win_attributes_->ia2_role = ia2_role; 4146 win_attributes_->ia2_role = ia2_role;
4147 win_attributes_->ia2_state = ia2_state; 4147 win_attributes_->ia2_state = ia2_state;
4148 } 4148 }
4149 4149
4150 } // namespace content 4150 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698