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

Side by Side Diff: chrome/browser/browser_accessibility_manager.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
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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_H_
6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_H_ 6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_H_
7 7
8 #include <oaidl.h> // Needed for VARIANT structure. 8 #include <oaidl.h> // Needed for VARIANT structure.
9 #include <hash_map> 9 #include <hash_map>
10 10
11 #include "base/singleton.h" 11 #include "base/singleton.h"
12 #include "chrome/common/notification_observer.h" 12 #include "chrome/common/notification_observer.h"
13 #include "chrome/common/render_messages.h" 13 #include "chrome/common/render_messages.h"
14 14
15 class BrowserAccessibility; 15 class BrowserAccessibility;
16 class RenderProcessHost; 16 class RenderProcessHost;
17 class RenderWidgetHost; 17 class RenderWidgetHost;
18 struct ViewHostMsg_Accessibility_Out_Params;
18 19
19 //////////////////////////////////////////////////////////////////////////////// 20 ////////////////////////////////////////////////////////////////////////////////
20 // 21 //
21 // BrowserAccessibilityManager 22 // BrowserAccessibilityManager
22 // 23 //
23 // Used to manage instance creation and memory handling for browser side 24 // Used to manage instance creation and memory handling for browser side
24 // accessibility. A singleton class. It implements NotificationObserver to 25 // accessibility. A singleton class. It implements NotificationObserver to
25 // ensure that a termination of a renderer process gets propagated to the 26 // ensure that a termination of a renderer process gets propagated to the
26 // active BrowserAccessibility instances calling into it. Each such instance 27 // active BrowserAccessibility instances calling into it. Each such instance
27 // will upon such an event be set to an inactive state, failing calls from the 28 // will upon such an event be set to an inactive state, failing calls from the
(...skipping 17 matching lines...) Expand all
45 // information. Unused LONG input parameters should be NULL, and the VARIANT 46 // information. Unused LONG input parameters should be NULL, and the VARIANT
46 // an empty, valid instance. 47 // an empty, valid instance.
47 bool RequestAccessibilityInfo(int iaccessible_id, 48 bool RequestAccessibilityInfo(int iaccessible_id,
48 int instance_id, 49 int instance_id,
49 int iaccessible_func_id, 50 int iaccessible_func_id,
50 VARIANT var_id, 51 VARIANT var_id,
51 LONG input1, 52 LONG input1,
52 LONG input2); 53 LONG input2);
53 54
54 // Wrapper function, for cleaner code. 55 // Wrapper function, for cleaner code.
55 ViewHostMsg_Accessibility_Out_Params response(); 56 const ViewHostMsg_Accessibility_Out_Params& response();
56 57
57 // Retrieves the parent HWND connected to the provided id. 58 // Retrieves the parent HWND connected to the provided id.
58 HWND parent_hwnd(int id); 59 HWND parent_hwnd(int id);
59 60
60 // Mutator, needed since constructor does not take any arguments, and to keep 61 // Mutator, needed since constructor does not take any arguments, and to keep
61 // instance accessor clean. 62 // instance accessor clean.
62 int SetMembers(BrowserAccessibility* browser_acc, 63 int SetMembers(BrowserAccessibility* browser_acc,
63 HWND parent_hwnd, 64 HWND parent_hwnd,
64 RenderWidgetHost* render_widget_host); 65 RenderWidgetHost* render_widget_host);
65 66
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Reverse mapping to track which RenderProcessHosts are active. If a 100 // Reverse mapping to track which RenderProcessHosts are active. If a
100 // RenderProcessHost is found to be terminated, it should be removed from this 101 // RenderProcessHost is found to be terminated, it should be removed from this
101 // mapping, and the connected BrowserAccessibility ids/instances invalidated. 102 // mapping, and the connected BrowserAccessibility ids/instances invalidated.
102 RenderProcessHostMap render_process_host_map_; 103 RenderProcessHostMap render_process_host_map_;
103 104
104 ViewHostMsg_Accessibility_Out_Params out_params_; 105 ViewHostMsg_Accessibility_Out_Params out_params_;
105 106
106 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 107 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
107 }; 108 };
108 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_H_ 109 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_accessibility.cc ('k') | chrome/browser/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698