| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ | 4 #ifndef UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ |
| 5 #define UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ | 5 #define UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ |
| 6 | 6 |
| 7 #include <limits.h> |
| 8 |
| 7 namespace base { | 9 namespace base { |
| 8 namespace win { | 10 namespace win { |
| 9 | 11 |
| 10 // Windows accessibility (MSAA) notifications are posted on an | 12 // Windows accessibility (MSAA) notifications are posted on an |
| 11 // accessible object using its owning HWND and a long integer child id. | 13 // accessible object using its owning HWND and a long integer child id. |
| 12 // Positive child ids can be used to enumerate the children of an object, | 14 // Positive child ids can be used to enumerate the children of an object, |
| 13 // so in Chromium we use only negative values to represent ids of specific | 15 // so in Chromium we use only negative values to represent ids of specific |
| 14 // accessible objects. | 16 // accessible objects. |
| 15 // | 17 // |
| 16 // Chromium currently has two separate systems that use accessibility ids: | 18 // Chromium currently has two separate systems that use accessibility ids: |
| 17 // * views (ui/views/accessibility), and | 19 // * views (ui/views/accessibility), and |
| 18 // * web (content/browser/accessibility) | 20 // * web (content/browser/accessibility) |
| 19 // | 21 // |
| 20 // These constants ensure they use non-overlapping id ranges. | 22 // These constants ensure they use non-overlapping id ranges. |
| 21 | 23 |
| 22 const long kFirstViewsAccessibilityId = -1; | 24 const long kFirstViewsAccessibilityId = -1; |
| 23 const long kLastViewsAccessibilityId = -999; | 25 const long kLastViewsAccessibilityId = -999; |
| 24 const long kFirstBrowserAccessibilityManagerAccessibilityId = -1000; | 26 const long kFirstBrowserAccessibilityManagerAccessibilityId = -1000; |
| 25 const long kLastBrowserAccessibilityManagerAccessibilityId = INT_MIN; | 27 const long kLastBrowserAccessibilityManagerAccessibilityId = INT_MIN; |
| 26 | 28 |
| 27 } // win | 29 } // win |
| 28 } // base | 30 } // base |
| 29 | 31 |
| 30 #endif // UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ | 32 #endif // UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_ |
| OLD | NEW |