OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ |
6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 | 43 |
44 // API function that darkens or undarkens the screen. | 44 // API function that darkens or undarkens the screen. |
45 class AccessibilityPrivateDarkenScreenFunction | 45 class AccessibilityPrivateDarkenScreenFunction |
46 : public UIThreadExtensionFunction { | 46 : public UIThreadExtensionFunction { |
47 ~AccessibilityPrivateDarkenScreenFunction() override {} | 47 ~AccessibilityPrivateDarkenScreenFunction() override {} |
48 ResponseAction Run() override; | 48 ResponseAction Run() override; |
49 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.darkenScreen", | 49 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.darkenScreen", |
50 ACCESSIBILITY_PRIVATE_DARKENSCREEN) | 50 ACCESSIBILITY_PRIVATE_DARKENSCREEN) |
51 }; | 51 }; |
52 | 52 |
53 // API function that sets the keys to be captured by Switch Access. | |
Devlin
2017/05/31 20:41:15
We should be able to have this declaration only on
elichtenberg
2017/06/01 19:55:27
Done.
| |
54 class AccessibilityPrivateSetSwitchAccessKeysFunction | |
55 : public UIThreadExtensionFunction { | |
56 ~AccessibilityPrivateSetSwitchAccessKeysFunction() override {} | |
57 ResponseAction Run() override; | |
58 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.setSwitchAccessKeys", | |
59 ACCESSIBILITY_PRIVATE_SETSWITCHACCESSKEYS) | |
60 }; | |
61 | |
53 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ | 62 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ |
OLD | NEW |