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

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

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 DictionaryValue last_focused_control_dict_; 64 DictionaryValue last_focused_control_dict_;
65 65
66 bool enabled_; 66 bool enabled_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter); 68 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter);
69 }; 69 };
70 70
71 // API function that enables or disables accessibility support. Event 71 // API function that enables or disables accessibility support. Event
72 // listeners are only installed when accessibility support is enabled, to 72 // listeners are only installed when accessibility support is enabled, to
73 // minimize the impact. 73 // minimize the impact.
74 class SetAccessibilityEnabledFunction : public SyncExtensionFunction { 74 class AccessibilitySetAccessibilityEnabledFunction
75 virtual ~SetAccessibilityEnabledFunction() {} 75 : public SyncExtensionFunction {
76 virtual ~AccessibilitySetAccessibilityEnabledFunction() {}
76 virtual bool RunImpl() OVERRIDE; 77 virtual bool RunImpl() OVERRIDE;
77 DECLARE_EXTENSION_FUNCTION( 78 DECLARE_EXTENSION_FUNCTION(
78 "experimental.accessibility.setAccessibilityEnabled", 79 "experimental.accessibility.setAccessibilityEnabled",
79 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED) 80 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED)
80 }; 81 };
81 82
82 // API function that returns the most recent focused control. 83 // API function that returns the most recent focused control.
83 class GetFocusedControlFunction : public SyncExtensionFunction { 84 class AccessibilityGetFocusedControlFunction : public SyncExtensionFunction {
84 virtual ~GetFocusedControlFunction() {} 85 virtual ~AccessibilityGetFocusedControlFunction() {}
85 virtual bool RunImpl() OVERRIDE; 86 virtual bool RunImpl() OVERRIDE;
86 DECLARE_EXTENSION_FUNCTION( 87 DECLARE_EXTENSION_FUNCTION(
87 "experimental.accessibility.getFocusedControl", 88 "experimental.accessibility.getFocusedControl",
88 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL) 89 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL)
89 }; 90 };
90 91
91 // API function that returns alerts being shown on the give tab. 92 // API function that returns alerts being shown on the give tab.
92 class GetAlertsForTabFunction : public SyncExtensionFunction { 93 class AccessibilityGetAlertsForTabFunction : public SyncExtensionFunction {
93 virtual ~GetAlertsForTabFunction() {} 94 virtual ~AccessibilityGetAlertsForTabFunction() {}
94 virtual bool RunImpl() OVERRIDE; 95 virtual bool RunImpl() OVERRIDE;
95 DECLARE_EXTENSION_FUNCTION( 96 DECLARE_EXTENSION_FUNCTION(
96 "experimental.accessibility.getAlertsForTab", 97 "experimental.accessibility.getAlertsForTab",
97 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB) 98 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB)
98 }; 99 };
99 100
100 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 101 #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') | tools/json_schema_compiler/cpp_util.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698