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

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

Issue 8869006: Remove special casing for firing load completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Poll while busy a11y tree returned. Created 9 years 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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 if (view() && !is_swapped_out_) 1393 if (view() && !is_swapped_out_)
1394 view()->OnAccessibilityNotifications(params); 1394 view()->OnAccessibilityNotifications(params);
1395 1395
1396 if (!params.empty()) { 1396 if (!params.empty()) {
1397 for (unsigned i = 0; i < params.size(); i++) { 1397 for (unsigned i = 0; i < params.size(); i++) {
1398 const ViewHostMsg_AccessibilityNotification_Params& param = params[i]; 1398 const ViewHostMsg_AccessibilityNotification_Params& param = params[i];
1399 1399
1400 if (param.notification_type == ViewHostMsg_AccEvent::LOAD_COMPLETE && 1400 if (param.notification_type == ViewHostMsg_AccEvent::LOAD_COMPLETE &&
1401 save_accessibility_tree_for_testing_) { 1401 save_accessibility_tree_for_testing_) {
1402 accessibility_tree_ = param.acc_tree; 1402 accessibility_tree_ = param.acc_tree;
1403 content::NotificationService::current()->Notify(
1404 content::NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
1405 content::Source<RenderViewHost>(this),
1406 content::NotificationService::NoDetails());
1403 } 1407 }
1404 } 1408 }
1405
1406 content::NotificationService::current()->Notify(
1407 content::NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
1408 content::Source<RenderViewHost>(this),
1409 content::NotificationService::NoDetails());
1410 } 1409 }
1411 1410
1412 Send(new ViewMsg_AccessibilityNotifications_ACK(routing_id())); 1411 Send(new ViewMsg_AccessibilityNotifications_ACK(routing_id()));
1413 } 1412 }
1414 1413
1415 void RenderViewHost::OnScriptEvalResponse(int id, const ListValue& result) { 1414 void RenderViewHost::OnScriptEvalResponse(int id, const ListValue& result) {
1416 Value* result_value; 1415 Value* result_value;
1417 if (!result.Get(0, &result_value)) { 1416 if (!result.Get(0, &result_value)) {
1418 // Programming error or rogue renderer. 1417 // Programming error or rogue renderer.
1419 NOTREACHED() << "Got bad arguments for OnScriptEvalResponse"; 1418 NOTREACHED() << "Got bad arguments for OnScriptEvalResponse";
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 1520
1522 void RenderViewHost::OnWebUISend(const GURL& source_url, 1521 void RenderViewHost::OnWebUISend(const GURL& source_url,
1523 const std::string& name, 1522 const std::string& name,
1524 const base::ListValue& args) { 1523 const base::ListValue& args) {
1525 delegate_->WebUISend(this, source_url, name, args); 1524 delegate_->WebUISend(this, source_url, name, args);
1526 } 1525 }
1527 1526
1528 void RenderViewHost::ClearPowerSaveBlockers() { 1527 void RenderViewHost::ClearPowerSaveBlockers() {
1529 STLDeleteValues(&power_save_blockers_); 1528 STLDeleteValues(&power_save_blockers_);
1530 } 1529 }
OLDNEW
« no previous file with comments | « content/browser/accessibility/renderer_accessibility_browsertest.cc ('k') | content/renderer/renderer_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698