| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 5 #ifndef VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ |
| 6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 int upper_bound) const; | 120 int upper_bound) const; |
| 121 | 121 |
| 122 // Wrapper to retrieve the view's instance of IAccessible. | 122 // Wrapper to retrieve the view's instance of IAccessible. |
| 123 ViewAccessibilityWrapper* GetViewAccessibilityWrapper(views::View* v) const { | 123 ViewAccessibilityWrapper* GetViewAccessibilityWrapper(views::View* v) const { |
| 124 return v->GetViewAccessibilityWrapper(); | 124 return v->GetViewAccessibilityWrapper(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 // Helper function which sets applicable states of view. | 127 // Helper function which sets applicable states of view. |
| 128 void SetState(VARIANT* msaa_state, views::View* view); | 128 void SetState(VARIANT* msaa_state, views::View* view); |
| 129 | 129 |
| 130 // Returns a conversion from the Role (as defined in | 130 // Returns a conversion from the Role (as defined in accessibility_types.h) |
| 131 // chrome/common/accessibility_types.h) to an MSAA role. | 131 // to an MSAA role. |
| 132 long MSAARole(AccessibilityTypes::Role role); | 132 long MSAARole(AccessibilityTypes::Role role); |
| 133 | 133 |
| 134 // Returns a conversion from the State (as defined in | 134 // Returns a conversion from the State (as defined in accessibility_types.h) |
| 135 // chrome/common/accessibility_types.h) to MSAA states set. | 135 // to MSAA states set. |
| 136 long MSAAState(AccessibilityTypes::State state); | 136 long MSAAState(AccessibilityTypes::State state); |
| 137 | 137 |
| 138 // Member View needed for view-specific calls. | 138 // Member View needed for view-specific calls. |
| 139 views::View* view_; | 139 views::View* view_; |
| 140 | 140 |
| 141 DISALLOW_EVIL_CONSTRUCTORS(ViewAccessibility); | 141 DISALLOW_EVIL_CONSTRUCTORS(ViewAccessibility); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 144 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ |
| OLD | NEW |