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 "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 3158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3169 } | 3169 } |
3170 | 3170 |
3171 void BrowserAccessibilityWin::NativeReleaseReference() { | 3171 void BrowserAccessibilityWin::NativeReleaseReference() { |
3172 Release(); | 3172 Release(); |
3173 } | 3173 } |
3174 | 3174 |
3175 bool BrowserAccessibilityWin::IsNative() const { | 3175 bool BrowserAccessibilityWin::IsNative() const { |
3176 return true; | 3176 return true; |
3177 } | 3177 } |
3178 | 3178 |
3179 void BrowserAccessibilityWin::OnLocationChanged() const { | 3179 void BrowserAccessibilityWin::OnLocationChanged() { |
3180 manager()->ToBrowserAccessibilityManagerWin()->MaybeCallNotifyWinEvent( | 3180 manager()->ToBrowserAccessibilityManagerWin()->MaybeCallNotifyWinEvent( |
3181 EVENT_OBJECT_LOCATIONCHANGE, unique_id_win()); | 3181 EVENT_OBJECT_LOCATIONCHANGE, unique_id_win()); |
3182 } | 3182 } |
3183 | 3183 |
3184 BrowserAccessibilityWin* BrowserAccessibilityWin::NewReference() { | 3184 BrowserAccessibilityWin* BrowserAccessibilityWin::NewReference() { |
3185 AddRef(); | 3185 AddRef(); |
3186 return this; | 3186 return this; |
3187 } | 3187 } |
3188 | 3188 |
3189 BrowserAccessibilityWin* BrowserAccessibilityWin::GetTargetFromChildID( | 3189 BrowserAccessibilityWin* BrowserAccessibilityWin::GetTargetFromChildID( |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3793 // The role should always be set. | 3793 // The role should always be set. |
3794 DCHECK(!role_name_.empty() || ia_role_); | 3794 DCHECK(!role_name_.empty() || ia_role_); |
3795 | 3795 |
3796 // If we didn't explicitly set the IAccessible2 role, make it the same | 3796 // If we didn't explicitly set the IAccessible2 role, make it the same |
3797 // as the MSAA role. | 3797 // as the MSAA role. |
3798 if (!ia2_role_) | 3798 if (!ia2_role_) |
3799 ia2_role_ = ia_role_; | 3799 ia2_role_ = ia_role_; |
3800 } | 3800 } |
3801 | 3801 |
3802 } // namespace content | 3802 } // namespace content |
OLD | NEW |