| Index: ui/accessibility/ax_tree_id_registry.h
|
| diff --git a/content/browser/accessibility/ax_tree_id_registry.h b/ui/accessibility/ax_tree_id_registry.h
|
| similarity index 78%
|
| rename from content/browser/accessibility/ax_tree_id_registry.h
|
| rename to ui/accessibility/ax_tree_id_registry.h
|
| index 7ef4fdabb72dbb0c21728c9a7fb4731b75911f55..7c16405e6836825f1bc9767b950a64fc30e88658 100644
|
| --- a/content/browser/accessibility/ax_tree_id_registry.h
|
| +++ b/ui/accessibility/ax_tree_id_registry.h
|
| @@ -2,23 +2,24 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
|
| -#define CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
|
| +#ifndef UI_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
|
| +#define UI_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
|
|
|
| #include <map>
|
| #include <utility>
|
|
|
| #include "base/macros.h"
|
| +#include "ui/accessibility/ax_export.h"
|
|
|
| namespace base {
|
| template <typename T>
|
| struct DefaultSingletonTraits;
|
| } // namespace base
|
|
|
| -namespace content {
|
| +namespace ui {
|
|
|
| -// A class which generates a unique id given a process id and frame routing id.
|
| -class AXTreeIDRegistry {
|
| +// A class which generates a unique id.
|
| +class AX_EXPORT AXTreeIDRegistry {
|
| public:
|
| using FrameID = std::pair<int, int>;
|
|
|
| @@ -35,6 +36,9 @@ class AXTreeIDRegistry {
|
| FrameID GetFrameID(AXTreeID ax_tree_id);
|
| void RemoveAXTreeID(AXTreeID ax_tree_id);
|
|
|
| + // Create an id not associated with any process.
|
| + int CreateID();
|
| +
|
| private:
|
| friend struct base::DefaultSingletonTraits<AXTreeIDRegistry>;
|
|
|
| @@ -53,6 +57,6 @@ class AXTreeIDRegistry {
|
| DISALLOW_COPY_AND_ASSIGN(AXTreeIDRegistry);
|
| };
|
|
|
| -} // namespace content
|
| +} // namespace ui
|
|
|
| -#endif // CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
|
| +#endif // UI_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
|
|
|