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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 7966013: Rewrite renderer accessibility to not use WebAccessibilityCache. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698