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

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

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

Powered by Google App Engine
This is Rietveld 408576698