| 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 <execinfo.h> | 5 #include <execinfo.h> |
| 6 | 6 |
| 7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "content/app/strings/grit/content_strings.h" |
| 15 #include "content/browser/accessibility/browser_accessibility_manager.h" | 16 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 16 #include "content/browser/accessibility/browser_accessibility_manager_mac.h" | 17 #include "content/browser/accessibility/browser_accessibility_manager_mac.h" |
| 17 #include "content/public/common/content_client.h" | 18 #include "content/public/common/content_client.h" |
| 18 #include "grit/webkit_strings.h" | |
| 19 #import "ui/accessibility/platform/ax_platform_node_mac.h" | 19 #import "ui/accessibility/platform/ax_platform_node_mac.h" |
| 20 | 20 |
| 21 // See http://openradar.appspot.com/9896491. This SPI has been tested on 10.5, | 21 // See http://openradar.appspot.com/9896491. This SPI has been tested on 10.5, |
| 22 // 10.6, and 10.7. It allows accessibility clients to observe events posted on | 22 // 10.6, and 10.7. It allows accessibility clients to observe events posted on |
| 23 // this object. | 23 // this object. |
| 24 extern "C" void NSAccessibilityUnregisterUniqueIdForUIElement(id element); | 24 extern "C" void NSAccessibilityUnregisterUniqueIdForUIElement(id element); |
| 25 | 25 |
| 26 using ui::AXNodeData; | 26 using ui::AXNodeData; |
| 27 using content::BrowserAccessibility; | 27 using content::BrowserAccessibility; |
| 28 using content::BrowserAccessibilityManager; | 28 using content::BrowserAccessibilityManager; |
| (...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 return [super hash]; | 1451 return [super hash]; |
| 1452 return browserAccessibility_->GetId(); | 1452 return browserAccessibility_->GetId(); |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 - (BOOL)accessibilityShouldUseUniqueId { | 1455 - (BOOL)accessibilityShouldUseUniqueId { |
| 1456 return YES; | 1456 return YES; |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 @end | 1459 @end |
| 1460 | 1460 |
| OLD | NEW |