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

Side by Side Diff: chrome/browser/extensions/api/automation_internal/automation_util.h

Issue 595413002: Draw an accessibility focus ring around the focused object in ChromeVox Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix automation browser test Created 6 years, 2 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
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/common/extensions/api/automation_internal.h" 10 #include "chrome/common/extensions/api/automation_internal.h"
11 #include "content/public/browser/ax_event_notification_details.h" 11 #include "content/public/browser/ax_event_notification_details.h"
12 12
13 namespace content { 13 namespace content {
14 class BrowserContext; 14 class BrowserContext;
15 } // namespace content 15 } // namespace content
16 16
17 namespace ui { 17 namespace ui {
18 struct AXNodeData; 18 struct AXNodeData;
19 } // namespace ui 19 } // namespace ui
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 // Shared utility functions for the Automation API. 23 // Shared utility functions for the Automation API.
24 namespace automation_util { 24 namespace automation_util {
25 25
26 // Dispatch events through the Automation API making any necessary conversions 26 // Dispatch events through the Automation API making any necessary conversions
27 // from accessibility to Automation types. 27 // from accessibility to Automation types.
28 void DispatchAccessibilityEventsToAutomation( 28 void DispatchAccessibilityEventsToAutomation(
29 const std::vector<content::AXEventNotificationDetails>& details, 29 const std::vector<content::AXEventNotificationDetails>& details,
30 content::BrowserContext* browser_context); 30 content::BrowserContext* browser_context,
31 const gfx::Vector2d& location_offset);
31 32
32 void DispatchTreeDestroyedEventToAutomation( 33 void DispatchTreeDestroyedEventToAutomation(
33 int process_id, 34 int process_id,
34 int routing_id, 35 int routing_id,
35 content::BrowserContext* browser_context); 36 content::BrowserContext* browser_context);
36 } // namespace automation_util 37 } // namespace automation_util
37 38
38 } // namespace extensions 39 } // namespace extensions
39 40
40 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_ 41 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698