1 // Copyright (c) 2012 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_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
10 #include "base/compiler_specific.h"
11 #include "base/memory/singleton.h"
12 #include "base/values.h"
13 #include "chrome/browser/extensions/chrome_extension_function.h"
14 #include "ui/accessibility/ax_enums.h"
16 // API function that enables or disables web content accessibility support.
17 class AccessibilityPrivateSetNativeAccessibilityEnabledFunction
18 : public ChromeSyncExtensionFunction
{
19 ~AccessibilityPrivateSetNativeAccessibilityEnabledFunction() override
{}
20 bool RunSync() override
;
21 DECLARE_EXTENSION_FUNCTION(
22 "accessibilityPrivate.setNativeAccessibilityEnabled",
23 ACCESSIBILITY_PRIVATE_SETNATIVEACCESSIBILITYENABLED
)
26 // API function that sets the location of the accessibility focus ring.
27 class AccessibilityPrivateSetFocusRingFunction
28 : public ChromeSyncExtensionFunction
{
29 ~AccessibilityPrivateSetFocusRingFunction() override
{}
30 bool RunSync() override
;
31 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.setFocusRing",
32 ACCESSIBILITY_PRIVATE_SETFOCUSRING
)
35 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_