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

Unified Diff: ui/accessibility/platform/ax_platform_node.cc

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.h ('k') | ui/accessibility/platform/ax_platform_unique_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_node.cc
diff --git a/ui/accessibility/platform/ax_platform_node.cc b/ui/accessibility/platform/ax_platform_node.cc
index dc275a7ccc399e6acd1dcf13f2d5af5e958fe6b0..a521f84f9792419a0c8dd09041e002deaf262555 100644
--- a/ui/accessibility/platform/ax_platform_node.cc
+++ b/ui/accessibility/platform/ax_platform_node.cc
@@ -9,6 +9,7 @@
#include "build/build_config.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/accessibility/platform/ax_platform_node_delegate.h"
+#include "ui/accessibility/platform/ax_platform_unique_id.h"
namespace ui {
@@ -20,13 +21,6 @@ base::LazyInstance<UniqueIdMap>::DestructorAtExit g_unique_id_map =
LAZY_INSTANCE_INITIALIZER;
}
-#if !defined(PLATFORM_HAS_AX_PLATFORM_NODE_IMPL)
-// static
-AXPlatformNode* AXPlatformNode::Create(AXPlatformNodeDelegate* delegate) {
- return nullptr;
-}
-#endif // !defined(PLATFORM_HAS_AX_PLATFORM_NODE_IMPL)
-
#if !defined(OS_WIN)
// This is the default implementation for platforms where native views
// accessibility is unsupported or unfinished.
@@ -38,19 +32,7 @@ AXPlatformNode* AXPlatformNode::FromNativeViewAccessible(
}
#endif
-// static
-int32_t AXPlatformNode::GetNextUniqueId() {
- static int32_t next_unique_id = 1;
- int32_t unique_id = next_unique_id;
- if (next_unique_id == INT32_MAX)
- next_unique_id = 1;
- else
- next_unique_id++;
-
- return unique_id;
-}
-
-AXPlatformNode::AXPlatformNode() : unique_id_(GetNextUniqueId()) {
+AXPlatformNode::AXPlatformNode() : unique_id_(GetNextAXPlatformNodeUniqueId()) {
g_unique_id_map.Get()[unique_id_] = this;
}
« no previous file with comments | « ui/accessibility/platform/ax_platform_node.h ('k') | ui/accessibility/platform/ax_platform_unique_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698