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

Side by Side Diff: chrome/browser/accessibility/accessibility_extension_api.h

Issue 2768703002: Wire up an api to darken screen for accessibility (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 34
35 // API function that sets keyboard capture mode. 35 // API function that sets keyboard capture mode.
36 class AccessibilityPrivateSetKeyboardListenerFunction 36 class AccessibilityPrivateSetKeyboardListenerFunction
37 : public UIThreadExtensionFunction { 37 : public UIThreadExtensionFunction {
38 ~AccessibilityPrivateSetKeyboardListenerFunction() override {} 38 ~AccessibilityPrivateSetKeyboardListenerFunction() override {}
39 ResponseAction Run() override; 39 ResponseAction Run() override;
40 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.setKeyboardListener", 40 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.setKeyboardListener",
41 ACCESSIBILITY_PRIVATE_SETKEYBOARDLISTENER) 41 ACCESSIBILITY_PRIVATE_SETKEYBOARDLISTENER)
42 }; 42 };
43 43
44 // API function that darkens or undarkens the screen.
45 class AccessibilityPrivateDarkenScreenFunction
46 : public UIThreadExtensionFunction {
47 ~AccessibilityPrivateDarkenScreenFunction() override {}
48 ResponseAction Run() override;
49 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.darkenScreen",
50 ACCESSIBILITY_PRIVATE_DARKENSCREEN)
51 };
52
44 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 53 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698