Chromium Code Reviews| Index: chrome/browser/accessibility/accessibility_extension_api.cc |
| diff --git a/chrome/browser/accessibility/accessibility_extension_api.cc b/chrome/browser/accessibility/accessibility_extension_api.cc |
| index 95ed9c2e1da86243736717f23fc84f79d9fdc3fc..662cf21e79edd2c0e8982dc6d4ad508f73a06921 100644 |
| --- a/chrome/browser/accessibility/accessibility_extension_api.cc |
| +++ b/chrome/browser/accessibility/accessibility_extension_api.cc |
| @@ -17,6 +17,7 @@ |
| #include "chrome/browser/infobars/infobar_service.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/common/chrome_notification_types.h" |
| +#include "content/public/browser/browser_accessibility_state.h" |
| #include "content/public/browser/notification_service.h" |
| #include "extensions/common/error_utils.h" |
| @@ -179,6 +180,16 @@ bool AccessibilitySetAccessibilityEnabledFunction::RunImpl() { |
| return true; |
| } |
| +bool AccessibilitySetWebAccessibilityEnabledFunction::RunImpl() { |
| + bool enabled; |
| + EXTENSION_FUNCTION_VALIDATE(args_->GetBoolean(0, &enabled)); |
| + if (enabled) { |
|
dmazzoni
2013/04/30 20:31:58
Shouldn't it call something if you pass false as w
|
| + content::BrowserAccessibilityState::GetInstance()-> |
| + OnExtensionWebAccessibilityEnabled(); |
|
dmazzoni
2013/04/30 20:31:58
indent 2 more
|
| + } |
| + return true; |
| +} |
| + |
| bool AccessibilityGetFocusedControlFunction::RunImpl() { |
| // Get the serialized dict from the last focused control and return it. |
| // However, if the dict is empty, that means we haven't seen any focus |