| 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 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 } | 319 } |
| 320 } | 320 } |
| 321 | 321 |
| 322 - (id)disclosedRows { | 322 - (id)disclosedRows { |
| 323 // The rows that are considered inside this row. | 323 // The rows that are considered inside this row. |
| 324 return nil; | 324 return nil; |
| 325 } | 325 } |
| 326 | 326 |
| 327 - (NSNumber*)enabled { | 327 - (NSNumber*)enabled { |
| 328 return [NSNumber numberWithBool: | 328 return [NSNumber numberWithBool: |
| 329 GetState(browserAccessibility_, ui::AX_STATE_ENABLED)]; | 329 !GetState(browserAccessibility_, ui::AX_STATE_DISABLED)]; |
| 330 } | 330 } |
| 331 | 331 |
| 332 - (NSNumber*)expanded { | 332 - (NSNumber*)expanded { |
| 333 return [NSNumber numberWithBool: | 333 return [NSNumber numberWithBool: |
| 334 GetState(browserAccessibility_, ui::AX_STATE_EXPANDED)]; | 334 GetState(browserAccessibility_, ui::AX_STATE_EXPANDED)]; |
| 335 } | 335 } |
| 336 | 336 |
| 337 - (NSNumber*)focused { | 337 - (NSNumber*)focused { |
| 338 BrowserAccessibilityManager* manager = browserAccessibility_->manager(); | 338 BrowserAccessibilityManager* manager = browserAccessibility_->manager(); |
| 339 NSNumber* ret = [NSNumber numberWithBool: | 339 NSNumber* ret = [NSNumber numberWithBool: |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1506 return [super hash]; | 1506 return [super hash]; |
| 1507 return browserAccessibility_->GetId(); | 1507 return browserAccessibility_->GetId(); |
| 1508 } | 1508 } |
| 1509 | 1509 |
| 1510 - (BOOL)accessibilityShouldUseUniqueId { | 1510 - (BOOL)accessibilityShouldUseUniqueId { |
| 1511 return YES; | 1511 return YES; |
| 1512 } | 1512 } |
| 1513 | 1513 |
| 1514 @end | 1514 @end |
| 1515 | 1515 |
| OLD | NEW |