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 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { | 1299 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { |
1300 if (view() && !is_swapped_out_) | 1300 if (view() && !is_swapped_out_) |
1301 view()->OnAccessibilityNotifications(params); | 1301 view()->OnAccessibilityNotifications(params); |
1302 | 1302 |
1303 if (!params.empty()) { | 1303 if (!params.empty()) { |
1304 for (unsigned i = 0; i < params.size(); i++) { | 1304 for (unsigned i = 0; i < params.size(); i++) { |
1305 const ViewHostMsg_AccessibilityNotification_Params& param = params[i]; | 1305 const ViewHostMsg_AccessibilityNotification_Params& param = params[i]; |
1306 | 1306 |
1307 if (param.notification_type == ViewHostMsg_AccEvent::LOAD_COMPLETE && | 1307 if (param.notification_type == ViewHostMsg_AccEvent::LOAD_COMPLETE && |
1308 save_accessibility_tree_for_testing_) { | 1308 save_accessibility_tree_for_testing_) { |
1309 accessibility_tree_ = param.acc_obj; | 1309 accessibility_tree_ = param.acc_tree; |
1310 } | 1310 } |
1311 } | 1311 } |
1312 | 1312 |
1313 NotificationService::current()->Notify( | 1313 NotificationService::current()->Notify( |
1314 content::NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, | 1314 content::NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, |
1315 Source<RenderViewHost>(this), | 1315 Source<RenderViewHost>(this), |
1316 NotificationService::NoDetails()); | 1316 NotificationService::NoDetails()); |
1317 } | 1317 } |
1318 | 1318 |
1319 Send(new ViewMsg_AccessibilityNotifications_ACK(routing_id())); | 1319 Send(new ViewMsg_AccessibilityNotifications_ACK(routing_id())); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 void RenderViewHost::OnRunFileChooser( | 1402 void RenderViewHost::OnRunFileChooser( |
1403 const ViewHostMsg_RunFileChooser_Params& params) { | 1403 const ViewHostMsg_RunFileChooser_Params& params) { |
1404 delegate_->RunFileChooser(this, params); | 1404 delegate_->RunFileChooser(this, params); |
1405 } | 1405 } |
1406 | 1406 |
1407 void RenderViewHost::OnWebUISend(const GURL& source_url, | 1407 void RenderViewHost::OnWebUISend(const GURL& source_url, |
1408 const std::string& name, | 1408 const std::string& name, |
1409 const base::ListValue& args) { | 1409 const base::ListValue& args) { |
1410 delegate_->WebUISend(this, source_url, name, args); | 1410 delegate_->WebUISend(this, source_url, name, args); |
1411 } | 1411 } |
1412 | |
OLD | NEW |