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

Side by Side Diff: chrome/browser/extensions/api/automation/automation_apitest.cc

Issue 1232643003: Give automation API access to browser plugin objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error Created 5 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698