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 #include "chrome/browser/browser_accessibility_manager.h" | 5 #include "chrome/browser/browser_accessibility_manager.h" |
6 | 6 |
7 #include "chrome/browser/browser_accessibility.h" | 7 #include "chrome/browser/browser_accessibility.h" |
8 #include "chrome/browser/renderer_host/render_process_host.h" | 8 #include "chrome/browser/renderer_host/render_process_host.h" |
9 #include "chrome/browser/renderer_host/render_widget_host.h" | 9 #include "chrome/browser/renderer_host/render_widget_host.h" |
10 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 routing_id(), in_params, &out_params_); | 109 routing_id(), in_params, &out_params_); |
110 // Necessary for the send to keep the UI responsive. | 110 // Necessary for the send to keep the UI responsive. |
111 msg->EnableMessagePumping(); | 111 msg->EnableMessagePumping(); |
112 success = members->render_widget_host_->process()->channel()-> | 112 success = members->render_widget_host_->process()->channel()-> |
113 SendWithTimeout(msg, kAccessibilityMessageTimeOut); | 113 SendWithTimeout(msg, kAccessibilityMessageTimeOut); |
114 } | 114 } |
115 | 115 |
116 return success; | 116 return success; |
117 } | 117 } |
118 | 118 |
119 ViewHostMsg_Accessibility_Out_Params BrowserAccessibilityManager::response() { | 119 const ViewHostMsg_Accessibility_Out_Params& |
| 120 BrowserAccessibilityManager::response() { |
120 return out_params_; | 121 return out_params_; |
121 } | 122 } |
122 | 123 |
123 HWND BrowserAccessibilityManager::parent_hwnd(int id) { | 124 HWND BrowserAccessibilityManager::parent_hwnd(int id) { |
124 // Retrieve the parent HWND connected to the requester's id. | 125 // Retrieve the parent HWND connected to the requester's id. |
125 InstanceMap::iterator it = instance_map_.find(id); | 126 InstanceMap::iterator it = instance_map_.find(id); |
126 | 127 |
127 if (it == instance_map_.end()) { | 128 if (it == instance_map_.end()) { |
128 // Id not found. | 129 // Id not found. |
129 return NULL; | 130 return NULL; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 166 |
166 // Delete entry also from InstanceMap. | 167 // Delete entry also from InstanceMap. |
167 InstanceMap::iterator it2 = instance_map_.find(it->second->instance_id()); | 168 InstanceMap::iterator it2 = instance_map_.find(it->second->instance_id()); |
168 | 169 |
169 if (it2 != instance_map_.end()) | 170 if (it2 != instance_map_.end()) |
170 instance_map_.erase(it2); | 171 instance_map_.erase(it2); |
171 | 172 |
172 // Only delete the first entry once it is no longer in use. | 173 // Only delete the first entry once it is no longer in use. |
173 render_process_host_map_.erase(it); | 174 render_process_host_map_.erase(it); |
174 } | 175 } |
OLD | NEW |