| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_UNIQUE_ID_H_ |
| 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_UNIQUE_ID_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "ui/accessibility/ax_export.h" |
| 11 |
| 12 namespace ui { |
| 13 |
| 14 // Each platform accessibility object has a unique id that's guaranteed to be a |
| 15 // positive number. (It's stored in an int32_t as opposed to uint32_t because |
| 16 // some platforms want to negate it, so we want to ensure the range is below the |
| 17 // signed int max.) This can be used when the id has to be unique across |
| 18 // multiple frames, since node ids are only unique within one tree. |
| 19 int32_t AX_EXPORT GetNextAXPlatformNodeUniqueId(); |
| 20 |
| 21 } // namespace ui |
| 22 |
| 23 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_UNIQUE_ID_H_ |
| OLD | NEW |