Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: ui/accessibility/platform/ax_platform_unique_id.h

Issue 2746813002: Hide AXPlatformNode on ChromeOS. (Closed)
Patch Set: has_native_accessibility Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/platform/ax_platform_node.cc ('k') | ui/accessibility/platform/ax_platform_unique_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_unique_id.h
diff --git a/ui/accessibility/platform/ax_platform_unique_id.h b/ui/accessibility/platform/ax_platform_unique_id.h
new file mode 100644
index 0000000000000000000000000000000000000000..1525d60770e36173eda36b0b80502d7bc3da1b6b
--- /dev/null
+++ b/ui/accessibility/platform/ax_platform_unique_id.h
@@ -0,0 +1,23 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_UNIQUE_ID_H_
+#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_UNIQUE_ID_H_
+
+#include <stdint.h>
+
+#include "ui/accessibility/ax_export.h"
+
+namespace ui {
+
+// Each platform accessibility object has a unique id that's guaranteed to be a
+// positive number. (It's stored in an int32_t as opposed to uint32_t because
+// some platforms want to negate it, so we want to ensure the range is below the
+// signed int max.) This can be used when the id has to be unique across
+// multiple frames, since node ids are only unique within one tree.
+int32_t AX_EXPORT GetNextAXPlatformNodeUniqueId();
+
+} // namespace ui
+
+#endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_UNIQUE_ID_H_
« no previous file with comments | « ui/accessibility/platform/ax_platform_node.cc ('k') | ui/accessibility/platform/ax_platform_unique_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698