app_list: Re-enable people search.
[chromium-blink-merge.git] / chrome / browser / extensions / api / automation_internal / automation_util.h
blob218038b47852dafa41dbe389b5188ee24e592aca
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_
8 #include <vector>
10 #include "chrome/common/extensions/api/automation_internal.h"
11 #include "content/public/browser/ax_event_notification_details.h"
13 namespace content {
14 class BrowserContext;
15 } // namespace content
17 namespace ui {
18 struct AXNodeData;
19 } // namespace ui
21 namespace extensions {
23 // Shared utility functions for the Automation API.
24 namespace automation_util {
26 // Dispatch events through the Automation API making any necessary conversions
27 // from accessibility to Automation types.
28 void DispatchAccessibilityEventsToAutomation(
29 const std::vector<content::AXEventNotificationDetails>& details,
30 content::BrowserContext* browser_context,
31 const gfx::Vector2d& location_offset);
33 void DispatchTreeDestroyedEventToAutomation(
34 int process_id,
35 int routing_id,
36 content::BrowserContext* browser_context);
37 } // namespace automation_util
39 } // namespace extensions
41 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_