OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/ui/aura/accessibility/automation_manager_aura.h" | 5 #include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 views::AXAuraObjWrapper* aura_obj, | 133 views::AXAuraObjWrapper* aura_obj, |
134 ui::AXEvent event_type) { | 134 ui::AXEvent event_type) { |
135 ui::AXTreeUpdate update; | 135 ui::AXTreeUpdate update; |
136 current_tree_serializer_->SerializeChanges(aura_obj, &update); | 136 current_tree_serializer_->SerializeChanges(aura_obj, &update); |
137 | 137 |
138 // Route this event to special process/routing ids recognized by the | 138 // Route this event to special process/routing ids recognized by the |
139 // Automation API as the desktop tree. | 139 // Automation API as the desktop tree. |
140 // TODO(dtseng): Would idealy define these special desktop constants in idl. | 140 // TODO(dtseng): Would idealy define these special desktop constants in idl. |
141 content::AXEventNotificationDetails detail( | 141 content::AXEventNotificationDetails detail( |
142 update.node_id_to_clear, update.nodes, event_type, aura_obj->GetID(), | 142 update.node_id_to_clear, update.nodes, event_type, aura_obj->GetID(), |
| 143 std::map<int32, int>(), |
143 0, /* process_id */ | 144 0, /* process_id */ |
144 0 /* routing_id */); | 145 0 /* routing_id */); |
145 std::vector<content::AXEventNotificationDetails> details; | 146 std::vector<content::AXEventNotificationDetails> details; |
146 details.push_back(detail); | 147 details.push_back(detail); |
147 extensions::automation_util::DispatchAccessibilityEventsToAutomation( | 148 extensions::automation_util::DispatchAccessibilityEventsToAutomation( |
148 details, context, gfx::Vector2d()); | 149 details, context, gfx::Vector2d()); |
149 } | 150 } |
150 | 151 |
151 void AutomationManagerAura::OnNativeFocusChanged(aura::Window* focused_now) { | 152 void AutomationManagerAura::OnNativeFocusChanged(aura::Window* focused_now) { |
152 focused_window_ = focused_now; | 153 focused_window_ = focused_now; |
153 } | 154 } |
OLD | NEW |