| 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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/location.h" | 6 #include "base/location.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // Sends the given AXTreeUpdate to the extension as an accessibility event. | 271 // Sends the given AXTreeUpdate to the extension as an accessibility event. |
| 272 void SendUpdate(ui::AXTreeUpdate update, | 272 void SendUpdate(ui::AXTreeUpdate update, |
| 273 ui::AXEvent event, | 273 ui::AXEvent event, |
| 274 int node_id, | 274 int node_id, |
| 275 int routing_id, | 275 int routing_id, |
| 276 BrowserContext* browser_context) { | 276 BrowserContext* browser_context) { |
| 277 content::AXEventNotificationDetails detail(update.node_id_to_clear, | 277 content::AXEventNotificationDetails detail(update.node_id_to_clear, |
| 278 update.nodes, | 278 update.nodes, |
| 279 event, | 279 event, |
| 280 node_id, | 280 node_id, |
| 281 std::map<int32, int>(), |
| 281 kPid, | 282 kPid, |
| 282 routing_id); | 283 routing_id); |
| 283 std::vector<content::AXEventNotificationDetails> details; | 284 std::vector<content::AXEventNotificationDetails> details; |
| 284 details.push_back(detail); | 285 details.push_back(detail); |
| 285 automation_util::DispatchAccessibilityEventsToAutomation( | 286 automation_util::DispatchAccessibilityEventsToAutomation( |
| 286 details, browser_context, gfx::Vector2d()); | 287 details, browser_context, gfx::Vector2d()); |
| 287 } | 288 } |
| 288 | 289 |
| 289 // Notify the extension bindings to destroy the tree for the given tab | 290 // Notify the extension bindings to destroy the tree for the given tab |
| 290 // (identified by routing_id) | 291 // (identified by routing_id) |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 "automationInternal.enableTab", | 534 "automationInternal.enableTab", |
| 534 FakeAutomationInternalEnableTabFunctionFactory)); | 535 FakeAutomationInternalEnableTabFunctionFactory)); |
| 535 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( | 536 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( |
| 536 "automationInternal.performAction", | 537 "automationInternal.performAction", |
| 537 FakeAutomationInternalPerformActionFunctionFactory)); | 538 FakeAutomationInternalPerformActionFunctionFactory)); |
| 538 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", | 539 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", |
| 539 "generated_trees.html")) << message_; | 540 "generated_trees.html")) << message_; |
| 540 } | 541 } |
| 541 | 542 |
| 542 } // namespace extensions | 543 } // namespace extensions |
| OLD | NEW |