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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2080573003: Track all changed nodes during an update (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make suggested change. Created 4 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 GetOrCreateBrowserAccessibilityManager(); 1808 GetOrCreateBrowserAccessibilityManager();
1809 1809
1810 std::vector<AXEventNotificationDetails> details; 1810 std::vector<AXEventNotificationDetails> details;
1811 details.reserve(params.size()); 1811 details.reserve(params.size());
1812 for (size_t i = 0; i < params.size(); ++i) { 1812 for (size_t i = 0; i < params.size(); ++i) {
1813 const AccessibilityHostMsg_EventParams& param = params[i]; 1813 const AccessibilityHostMsg_EventParams& param = params[i];
1814 AXEventNotificationDetails detail; 1814 AXEventNotificationDetails detail;
1815 detail.event_type = param.event_type; 1815 detail.event_type = param.event_type;
1816 detail.id = param.id; 1816 detail.id = param.id;
1817 detail.ax_tree_id = GetAXTreeID(); 1817 detail.ax_tree_id = GetAXTreeID();
1818 detail.event_from = param.event_from;
1818 if (param.update.has_tree_data) { 1819 if (param.update.has_tree_data) {
1819 detail.update.has_tree_data = true; 1820 detail.update.has_tree_data = true;
1820 ax_content_tree_data_ = param.update.tree_data; 1821 ax_content_tree_data_ = param.update.tree_data;
1821 AXContentTreeDataToAXTreeData(&detail.update.tree_data); 1822 AXContentTreeDataToAXTreeData(&detail.update.tree_data);
1822 } 1823 }
1823 detail.update.root_id = param.update.root_id; 1824 detail.update.root_id = param.update.root_id;
1824 detail.update.node_id_to_clear = param.update.node_id_to_clear; 1825 detail.update.node_id_to_clear = param.update.node_id_to_clear;
1825 detail.update.nodes.resize(param.update.nodes.size()); 1826 detail.update.nodes.resize(param.update.nodes.size());
1826 for (size_t i = 0; i < param.update.nodes.size(); ++i) { 1827 for (size_t i = 0; i < param.update.nodes.size(); ++i) {
1827 AXContentNodeDataToAXNodeData(param.update.nodes[i], 1828 AXContentNodeDataToAXNodeData(param.update.nodes[i],
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
3055 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 3056 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
3056 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 3057 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
3057 return web_bluetooth_service_.get(); 3058 return web_bluetooth_service_.get();
3058 } 3059 }
3059 3060
3060 void RenderFrameHostImpl::DeleteWebBluetoothService() { 3061 void RenderFrameHostImpl::DeleteWebBluetoothService() {
3061 web_bluetooth_service_.reset(); 3062 web_bluetooth_service_.reset();
3062 } 3063 }
3063 3064
3064 } // namespace content 3065 } // namespace content
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/automation_custom_bindings.js ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698