• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The Chromium Embedded Framework Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_OSR_ACCESSIBILITY_UTIL_H_
6 #define CEF_LIBCEF_BROWSER_OSR_ACCESSIBILITY_UTIL_H_
7 #pragma once
8 
9 #include <vector>
10 #include "include/cef_values.h"
11 
12 namespace content {
13 struct AXEventNotificationDetails;
14 struct AXLocationChangeNotificationDetails;
15 }  // namespace content
16 
17 namespace osr_accessibility_util {
18 
19 // Convert Accessibility Event and location updates to CefValue, which may be
20 // consumed or serialized with CefJSONWrite.
21 CefRefPtr<CefValue> ParseAccessibilityEventData(
22     const content::AXEventNotificationDetails& data);
23 
24 CefRefPtr<CefValue> ParseAccessibilityLocationData(
25     const std::vector<content::AXLocationChangeNotificationDetails>& data);
26 
27 }  // namespace osr_accessibility_util
28 
29 #endif  // CEF_LIBCEF_BROWSER_ACCESSIBILITY_UTIL_H_
30