Chromium Code Reviews| 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 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 8 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
| 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/chrome_notification_types.h" |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 ui::AXEvent event, | 41 ui::AXEvent event, |
| 42 AccessibilityWindowInfo* info) { | 42 AccessibilityWindowInfo* info) { |
| 43 Profile* profile = info->profile(); | 43 Profile* profile = info->profile(); |
| 44 if (profile->ShouldSendAccessibilityEvents()) { | 44 if (profile->ShouldSendAccessibilityEvents()) { |
| 45 ExtensionAccessibilityEventRouter::GetInstance()->HandleWindowEvent( | 45 ExtensionAccessibilityEventRouter::GetInstance()->HandleWindowEvent( |
| 46 event, | 46 event, |
| 47 info); | 47 info); |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 | 50 |
| 51 | |
|
David Tseng
2014/07/22 04:50:49
nit: not needed?
| |
| 52 AccessibilityControlInfo::AccessibilityControlInfo( | 51 AccessibilityControlInfo::AccessibilityControlInfo( |
| 53 Profile* profile, const std::string& name) | 52 Profile* profile, const std::string& name) |
| 54 : AccessibilityEventInfo(profile), | 53 : AccessibilityEventInfo(profile), |
| 55 name_(name) { | 54 name_(name) { |
| 56 } | 55 } |
| 57 | 56 |
| 58 AccessibilityControlInfo::~AccessibilityControlInfo() { | 57 AccessibilityControlInfo::~AccessibilityControlInfo() { |
| 59 } | 58 } |
| 60 | 59 |
| 61 void AccessibilityControlInfo::SerializeToDict( | 60 void AccessibilityControlInfo::SerializeToDict( |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 331 } | 330 } |
| 332 | 331 |
| 333 AccessibilityAlertInfo::AccessibilityAlertInfo(Profile* profile, | 332 AccessibilityAlertInfo::AccessibilityAlertInfo(Profile* profile, |
| 334 const std::string& name) | 333 const std::string& name) |
| 335 : AccessibilityControlInfo(profile, name) { | 334 : AccessibilityControlInfo(profile, name) { |
| 336 } | 335 } |
| 337 | 336 |
| 338 const char* AccessibilityAlertInfo::type() const { | 337 const char* AccessibilityAlertInfo::type() const { |
| 339 return keys::kTypeAlert; | 338 return keys::kTypeAlert; |
| 340 } | 339 } |
| OLD | NEW |