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 16 matching lines...) Expand all Loading... |
27 // These nonstandard GUIDs are taken directly from the Mozilla sources | 27 // These nonstandard GUIDs are taken directly from the Mozilla sources |
28 // (accessible/src/msaa/nsAccessNodeWrap.cpp); some documentation is here: | 28 // (accessible/src/msaa/nsAccessNodeWrap.cpp); some documentation is here: |
29 // http://developer.mozilla.org/en/Accessibility/AT-APIs/ImplementationFeatures/
MSAA | 29 // http://developer.mozilla.org/en/Accessibility/AT-APIs/ImplementationFeatures/
MSAA |
30 const GUID GUID_ISimpleDOM = { | 30 const GUID GUID_ISimpleDOM = { |
31 0x0c539790, 0x12e4, 0x11cf, | 31 0x0c539790, 0x12e4, 0x11cf, |
32 0xb6, 0x61, 0x00, 0xaa, 0x00, 0x4c, 0xd6, 0xd8}; | 32 0xb6, 0x61, 0x00, 0xaa, 0x00, 0x4c, 0xd6, 0xd8}; |
33 const GUID GUID_IAccessibleContentDocument = { | 33 const GUID GUID_IAccessibleContentDocument = { |
34 0xa5d8e1f3, 0x3571, 0x4d8f, | 34 0xa5d8e1f3, 0x3571, 0x4d8f, |
35 0x95, 0x21, 0x07, 0xed, 0x28, 0xfb, 0x07, 0x2e}; | 35 0x95, 0x21, 0x07, 0xed, 0x28, 0xfb, 0x07, 0x2e}; |
36 | 36 |
37 const char16 BrowserAccessibilityWin::kEmbeddedCharacter[] = L"\xfffc"; | 37 const base::char16 BrowserAccessibilityWin::kEmbeddedCharacter[] = L"\xfffc"; |
38 | 38 |
39 // static | 39 // static |
40 LONG BrowserAccessibilityWin::next_unique_id_win_ = | 40 LONG BrowserAccessibilityWin::next_unique_id_win_ = |
41 base::win::kFirstBrowserAccessibilityManagerAccessibilityId; | 41 base::win::kFirstBrowserAccessibilityManagerAccessibilityId; |
42 | 42 |
43 // | 43 // |
44 // BrowserAccessibilityRelation | 44 // BrowserAccessibilityRelation |
45 // | 45 // |
46 // A simple implementation of IAccessibleRelation, used to represent | 46 // A simple implementation of IAccessibleRelation, used to represent |
47 // a relationship between two accessible nodes in the tree. | 47 // a relationship between two accessible nodes in the tree. |
(...skipping 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3786 // The role should always be set. | 3786 // The role should always be set. |
3787 DCHECK(!role_name_.empty() || ia_role_); | 3787 DCHECK(!role_name_.empty() || ia_role_); |
3788 | 3788 |
3789 // If we didn't explicitly set the IAccessible2 role, make it the same | 3789 // If we didn't explicitly set the IAccessible2 role, make it the same |
3790 // as the MSAA role. | 3790 // as the MSAA role. |
3791 if (!ia2_role_) | 3791 if (!ia2_role_) |
3792 ia2_role_ = ia_role_; | 3792 ia2_role_ = ia_role_; |
3793 } | 3793 } |
3794 | 3794 |
3795 } // namespace content | 3795 } // namespace content |
OLD | NEW |