| 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 "content/browser/accessibility/browser_accessibility_manager_mac.h" | 5 #include "content/browser/accessibility/browser_accessibility_manager_mac.h" |
| 6 | 6 |
| 7 #import "base/mac/mac_util.h" | 7 #import "base/mac/mac_util.h" |
| 8 #import "base/mac/sdk_forward_declarations.h" | 8 #import "base/mac/sdk_forward_declarations.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // want to post a focus change because this will take the focus out of | 175 // want to post a focus change because this will take the focus out of |
| 176 // the combo box where the user might be typing. | 176 // the combo box where the user might be typing. |
| 177 mac_notification = NSAccessibilitySelectedChildrenChangedNotification; | 177 mac_notification = NSAccessibilitySelectedChildrenChangedNotification; |
| 178 } else { | 178 } else { |
| 179 mac_notification = NSAccessibilityFocusedUIElementChangedNotification; | 179 mac_notification = NSAccessibilityFocusedUIElementChangedNotification; |
| 180 } | 180 } |
| 181 break; | 181 break; |
| 182 case ui::AX_EVENT_AUTOCORRECTION_OCCURED: | 182 case ui::AX_EVENT_AUTOCORRECTION_OCCURED: |
| 183 mac_notification = NSAccessibilityAutocorrectionOccurredNotification; | 183 mac_notification = NSAccessibilityAutocorrectionOccurredNotification; |
| 184 break; | 184 break; |
| 185 case ui::AX_EVENT_EXPANDED_CHANGED: |
| 186 mac_notification = @"AXExpandedChanged"; |
| 187 break; |
| 185 case ui::AX_EVENT_FOCUS: | 188 case ui::AX_EVENT_FOCUS: |
| 186 mac_notification = NSAccessibilityFocusedUIElementChangedNotification; | 189 mac_notification = NSAccessibilityFocusedUIElementChangedNotification; |
| 187 break; | 190 break; |
| 188 case ui::AX_EVENT_LAYOUT_COMPLETE: | 191 case ui::AX_EVENT_LAYOUT_COMPLETE: |
| 189 mac_notification = NSAccessibilityLayoutCompleteNotification; | 192 mac_notification = NSAccessibilityLayoutCompleteNotification; |
| 190 break; | 193 break; |
| 191 case ui::AX_EVENT_LOAD_COMPLETE: | 194 case ui::AX_EVENT_LOAD_COMPLETE: |
| 192 mac_notification = NSAccessibilityLoadCompleteNotification; | 195 mac_notification = NSAccessibilityLoadCompleteNotification; |
| 193 break; | 196 break; |
| 194 case ui::AX_EVENT_INVALID_STATUS_CHANGED: | 197 case ui::AX_EVENT_INVALID_STATUS_CHANGED: |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 } | 459 } |
| 457 | 460 |
| 458 return @{ | 461 return @{ |
| 459 NSAccessibilityTextStateChangeTypeKey : @(AXTextStateChangeTypeEdit), | 462 NSAccessibilityTextStateChangeTypeKey : @(AXTextStateChangeTypeEdit), |
| 460 NSAccessibilityTextChangeValues : changes, | 463 NSAccessibilityTextChangeValues : changes, |
| 461 NSAccessibilityTextChangeElement : native_node | 464 NSAccessibilityTextChangeElement : native_node |
| 462 }; | 465 }; |
| 463 } | 466 } |
| 464 | 467 |
| 465 } // namespace content | 468 } // namespace content |
| OLD | NEW |