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

Side by Side Diff: chrome/browser/browser_accessibility.h

Issue 20059: Commiting the changes from my previous cl that are specific to not including ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « no previous file | chrome/browser/browser_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_BROWSER_BROWSER_ACCESSIBILITY_H_ 5 #ifndef CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_
6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ 6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 10
11 #include <oleacc.h> 11 #include <oleacc.h>
12 12
13 #include "chrome/common/render_messages.h" 13 #include "base/basictypes.h"
14
15 struct ViewHostMsg_Accessibility_Out_Params;
14 16
15 //////////////////////////////////////////////////////////////////////////////// 17 ////////////////////////////////////////////////////////////////////////////////
16 // 18 //
17 // BrowserAccessibility 19 // BrowserAccessibility
18 // 20 //
19 // Class implementing the MSAA IAccessible COM interface for the 21 // Class implementing the MSAA IAccessible COM interface for the
20 // Browser-Renderer communication of MSAA information, providing accessibility 22 // Browser-Renderer communication of MSAA information, providing accessibility
21 // to be used by screen readers and other assistive technology (AT). 23 // to be used by screen readers and other assistive technology (AT).
22 // 24 //
23 //////////////////////////////////////////////////////////////////////////////// 25 ////////////////////////////////////////////////////////////////////////////////
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void** interface_ptr); 139 void** interface_ptr);
138 140
139 // Composes and sends a message for requesting needed accessibility 141 // Composes and sends a message for requesting needed accessibility
140 // information. Unused LONG input parameters should be NULL, and the VARIANT 142 // information. Unused LONG input parameters should be NULL, and the VARIANT
141 // an empty, valid instance. 143 // an empty, valid instance.
142 bool RequestAccessibilityInfo(int iaccessible_func_id, 144 bool RequestAccessibilityInfo(int iaccessible_func_id,
143 VARIANT var_id, 145 VARIANT var_id,
144 LONG input1, LONG input2); 146 LONG input1, LONG input2);
145 147
146 // Accessors. 148 // Accessors.
147 ViewHostMsg_Accessibility_Out_Params response(); 149 const ViewHostMsg_Accessibility_Out_Params& response();
148 HWND parent_hwnd(); 150 HWND parent_hwnd();
149 151
150 // Id to uniquely distinguish this instance in the render-side caching, 152 // Id to uniquely distinguish this instance in the render-side caching,
151 // mapping it to the correct IAccessible on that side. Initialized to -1. 153 // mapping it to the correct IAccessible on that side. Initialized to -1.
152 int iaccessible_id_; 154 int iaccessible_id_;
153 155
154 // The unique id of this IAccessible instance. Used to help 156 // The unique id of this IAccessible instance. Used to help
155 // BrowserAccessibilityManager instance retrieve the correct member 157 // BrowserAccessibilityManager instance retrieve the correct member
156 // variables for this process. 158 // variables for this process.
157 int instance_id_; 159 int instance_id_;
158 160
159 // The instance should only be active if there is a non-terminated 161 // The instance should only be active if there is a non-terminated
160 // RenderProcessHost associated with it. The BrowserAccessibilityManager keeps 162 // RenderProcessHost associated with it. The BrowserAccessibilityManager keeps
161 // track of this state, and sets it to false to disable all calls into the 163 // track of this state, and sets it to false to disable all calls into the
162 // renderer from this instance of BroweserAccessibility, and have all 164 // renderer from this instance of BroweserAccessibility, and have all
163 // IAccessible functions return E_FAIL. 165 // IAccessible functions return E_FAIL.
164 bool instance_active_; 166 bool instance_active_;
165 167
166 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 168 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
167 }; 169 };
168 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_ 170 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_H_
169 171
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698