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

Unified Diff: content/browser/accessibility/ax_tree_id_registry.h

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: Rebase. Created 3 years, 10 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
Index: content/browser/accessibility/ax_tree_id_registry.h
diff --git a/content/browser/accessibility/ax_tree_id_registry.h b/content/browser/accessibility/ax_tree_id_registry.h
deleted file mode 100644
index 7ef4fdabb72dbb0c21728c9a7fb4731b75911f55..0000000000000000000000000000000000000000
--- a/content/browser/accessibility/ax_tree_id_registry.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 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 CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
-#define CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
-
-#include <map>
-#include <utility>
-
-#include "base/macros.h"
-
-namespace base {
-template <typename T>
-struct DefaultSingletonTraits;
-} // namespace base
-
-namespace content {
-
-// A class which generates a unique id given a process id and frame routing id.
-class AXTreeIDRegistry {
- public:
- using FrameID = std::pair<int, int>;
-
- using AXTreeID = int;
-
- static const AXTreeID kNoAXTreeID;
-
- // Get the single instance of this class.
- static AXTreeIDRegistry* GetInstance();
-
- // Obtains a unique id given a |process_id| and |routing_id|. Placeholder
- // for full implementation once out of process iframe accessibility finalizes.
- AXTreeID GetOrCreateAXTreeID(int process_id, int routing_id);
- FrameID GetFrameID(AXTreeID ax_tree_id);
- void RemoveAXTreeID(AXTreeID ax_tree_id);
-
- private:
- friend struct base::DefaultSingletonTraits<AXTreeIDRegistry>;
-
- AXTreeIDRegistry();
- virtual ~AXTreeIDRegistry();
-
- // Tracks the current unique ax frame id.
- AXTreeID ax_tree_id_counter_;
-
- // Maps an accessibility tree to its frame via ids.
- std::map<AXTreeID, FrameID> ax_tree_to_frame_id_map_;
-
- // Maps frames to an accessibility tree via ids.
- std::map<FrameID, AXTreeID> frame_to_ax_tree_id_map_;
-
- DISALLOW_COPY_AND_ASSIGN(AXTreeIDRegistry);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_
« no previous file with comments | « content/browser/accessibility/ax_platform_position.h ('k') | content/browser/accessibility/ax_tree_id_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698