| 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 CHROME_VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 5 #ifndef CHROME_VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ |
| 6 #define CHROME_VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 6 #define CHROME_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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 int start_id, | 118 int start_id, |
| 119 int lower_bound, | 119 int lower_bound, |
| 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* state, views::View* view); | 128 void SetState(VARIANT* msaa_state, views::View* view); |
| 129 |
| 130 // Returns a conversion from the Role (as defined in |
| 131 // chrome/common/accessibility_types.h) to an MSAA role. |
| 132 long MSAARole(AccessibilityTypes::Role role); |
| 133 |
| 134 // Returns a conversion from the State (as defined in |
| 135 // chrome/common/accessibility_types.h) to MSAA states set. |
| 136 long MSAAState(AccessibilityTypes::State state); |
| 129 | 137 |
| 130 // Member View needed for view-specific calls. | 138 // Member View needed for view-specific calls. |
| 131 views::View* view_; | 139 views::View* view_; |
| 132 | 140 |
| 133 DISALLOW_EVIL_CONSTRUCTORS(ViewAccessibility); | 141 DISALLOW_EVIL_CONSTRUCTORS(ViewAccessibility); |
| 134 }; | 142 }; |
| 135 | 143 |
| 136 #endif // CHROME_VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 144 #endif // CHROME_VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ |
| OLD | NEW |