| 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 #include "chrome/browser/accessibility/accessibility_events.h" | 5 #include "chrome/browser/accessibility/accessibility_events.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 | 8 |
| 9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" | 9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "chrome/common/chrome_notification_types.h" | |
| 13 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
| 14 #include "content/public/browser/notification_types.h" | 14 #include "content/public/browser/notification_types.h" |
| 15 | 15 |
| 16 namespace keys = extension_accessibility_api_constants; | 16 namespace keys = extension_accessibility_api_constants; |
| 17 | 17 |
| 18 void SendAccessibilityNotification(int type, AccessibilityEventInfo* info) { | 18 void SendAccessibilityNotification(int type, AccessibilityEventInfo* info) { |
| 19 Profile *profile = info->profile(); | 19 Profile *profile = info->profile(); |
| 20 if (profile->ShouldSendAccessibilityEvents()) { | 20 if (profile->ShouldSendAccessibilityEvents()) { |
| 21 content::NotificationService::current()->Notify( | 21 content::NotificationService::current()->Notify( |
| 22 type, | 22 type, |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 251 } |
| 252 | 252 |
| 253 const char* AccessibilitySliderInfo::type() const { | 253 const char* AccessibilitySliderInfo::type() const { |
| 254 return keys::kTypeSlider; | 254 return keys::kTypeSlider; |
| 255 } | 255 } |
| 256 | 256 |
| 257 void AccessibilitySliderInfo::SerializeToDict(DictionaryValue *dict) const { | 257 void AccessibilitySliderInfo::SerializeToDict(DictionaryValue *dict) const { |
| 258 AccessibilityControlInfo::SerializeToDict(dict); | 258 AccessibilityControlInfo::SerializeToDict(dict); |
| 259 dict->SetString(keys::kStringValueKey, value_); | 259 dict->SetString(keys::kStringValueKey, value_); |
| 260 } | 260 } |
| OLD | NEW |