| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 | 1260 |
| 1261 void RenderViewHost::OnAccessibilityNotifications( | 1261 void RenderViewHost::OnAccessibilityNotifications( |
| 1262 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { | 1262 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { |
| 1263 if (view() && !is_swapped_out_) | 1263 if (view() && !is_swapped_out_) |
| 1264 view()->OnAccessibilityNotifications(params); | 1264 view()->OnAccessibilityNotifications(params); |
| 1265 | 1265 |
| 1266 if (!params.empty()) { | 1266 if (!params.empty()) { |
| 1267 for (unsigned i = 0; i < params.size(); i++) { | 1267 for (unsigned i = 0; i < params.size(); i++) { |
| 1268 const ViewHostMsg_AccessibilityNotification_Params& param = params[i]; | 1268 const ViewHostMsg_AccessibilityNotification_Params& param = params[i]; |
| 1269 | 1269 |
| 1270 if (param.notification_type == | 1270 if (param.notification_type == ViewHostMsg_AccEvent::LOAD_COMPLETE && |
| 1271 ViewHostMsg_AccessibilityNotification_Type:: | 1271 save_accessibility_tree_for_testing_) { |
| 1272 NOTIFICATION_TYPE_LOAD_COMPLETE) { | 1272 accessibility_tree_ = param.acc_obj; |
| 1273 if (save_accessibility_tree_for_testing_) | |
| 1274 accessibility_tree_ = param.acc_obj; | |
| 1275 } | 1273 } |
| 1276 } | 1274 } |
| 1277 | 1275 |
| 1278 NotificationService::current()->Notify( | 1276 NotificationService::current()->Notify( |
| 1279 content::NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, | 1277 content::NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, |
| 1280 Source<RenderViewHost>(this), | 1278 Source<RenderViewHost>(this), |
| 1281 NotificationService::NoDetails()); | 1279 NotificationService::NoDetails()); |
| 1282 } | 1280 } |
| 1283 | 1281 |
| 1284 Send(new ViewMsg_AccessibilityNotifications_ACK(routing_id())); | 1282 Send(new ViewMsg_AccessibilityNotifications_ACK(routing_id())); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 params.right_aligned); | 1360 params.right_aligned); |
| 1363 } | 1361 } |
| 1364 } | 1362 } |
| 1365 #endif | 1363 #endif |
| 1366 | 1364 |
| 1367 void RenderViewHost::OnRunFileChooser( | 1365 void RenderViewHost::OnRunFileChooser( |
| 1368 const ViewHostMsg_RunFileChooser_Params& params) { | 1366 const ViewHostMsg_RunFileChooser_Params& params) { |
| 1369 delegate_->RunFileChooser(this, params); | 1367 delegate_->RunFileChooser(this, params); |
| 1370 } | 1368 } |
| 1371 | 1369 |
| OLD | NEW |