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

Side by Side Diff: chrome/views/accessibility/view_accessibility.h

Issue 93085: Removes the use of Windows-specific types for accessibility roles and states ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/common.vcproj ('k') | chrome/views/accessibility/view_accessibility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/common/common.vcproj ('k') | chrome/views/accessibility/view_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698