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/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "chrome/browser/extensions/api/automation_internal/automation_util.h" | 8 #include "chrome/browser/extensions/api/automation_internal/automation_util.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 int routing_id, | 230 int routing_id, |
231 BrowserContext* browser_context) { | 231 BrowserContext* browser_context) { |
232 content::AXEventNotificationDetails detail(update.node_id_to_clear, | 232 content::AXEventNotificationDetails detail(update.node_id_to_clear, |
233 update.nodes, | 233 update.nodes, |
234 event, | 234 event, |
235 node_id, | 235 node_id, |
236 kPid, | 236 kPid, |
237 routing_id); | 237 routing_id); |
238 std::vector<content::AXEventNotificationDetails> details; | 238 std::vector<content::AXEventNotificationDetails> details; |
239 details.push_back(detail); | 239 details.push_back(detail); |
240 automation_util::DispatchAccessibilityEventsToAutomation(details, | 240 automation_util::DispatchAccessibilityEventsToAutomation( |
241 browser_context); | 241 details, browser_context, gfx::Vector2d()); |
242 } | 242 } |
243 | 243 |
244 // Notify the extension bindings to destroy the tree for the given tab | 244 // Notify the extension bindings to destroy the tree for the given tab |
245 // (identified by routing_id) | 245 // (identified by routing_id) |
246 void SendTreeDestroyedEvent(int routing_id, BrowserContext* browser_context) { | 246 void SendTreeDestroyedEvent(int routing_id, BrowserContext* browser_context) { |
247 automation_util::DispatchTreeDestroyedEventToAutomation( | 247 automation_util::DispatchTreeDestroyedEventToAutomation( |
248 kPid, routing_id, browser_context); | 248 kPid, routing_id, browser_context); |
249 } | 249 } |
250 | 250 |
251 // Reset tree0 to a new generated tree based on tree0_version, reset | 251 // Reset tree0 to a new generated tree based on tree0_version, reset |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 "automationInternal.enableTab", | 491 "automationInternal.enableTab", |
492 FakeAutomationInternalEnableTabFunctionFactory)); | 492 FakeAutomationInternalEnableTabFunctionFactory)); |
493 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( | 493 ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction( |
494 "automationInternal.performAction", | 494 "automationInternal.performAction", |
495 FakeAutomationInternalPerformActionFunctionFactory)); | 495 FakeAutomationInternalPerformActionFunctionFactory)); |
496 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", | 496 ASSERT_TRUE(RunExtensionSubtest("automation/tests/generated", |
497 "generated_trees.html")) << message_; | 497 "generated_trees.html")) << message_; |
498 } | 498 } |
499 | 499 |
500 } // namespace extensions | 500 } // namespace extensions |
OLD | NEW |