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

Unified Diff: third_party/WebKit/Source/core/dom/AXObjectCacheBase.h

Issue 2880993002: Introduce AXObjectCacheBase in core/ and remove WebNode dependency (Closed)
Patch Set: Review feedback Created 3 years, 7 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: third_party/WebKit/Source/core/dom/AXObjectCacheBase.h
diff --git a/third_party/WebKit/Source/core/dom/AXObjectCacheBase.h b/third_party/WebKit/Source/core/dom/AXObjectCacheBase.h
new file mode 100644
index 0000000000000000000000000000000000000000..67407e1da6af35e40f6dce3f3082bc36b8008f87
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/AXObjectCacheBase.h
@@ -0,0 +1,39 @@
+// 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 AXObjectCacheBase_h
+#define AXObjectCacheBase_h
+
+#include "core/CoreExport.h"
+#include "core/dom/AXObjectCache.h"
+
+namespace blink {
+
+class Node;
+class AXObject;
+
+// AXObjectCacheBase is a temporary class that sits between AXObjectCache and
+// AXObjectImpl and contains methods required by web/ that we don't want to be
+// available in the public API (AXObjectCache).
+// TODO(dmazzoni): Once all dependencies in web/ use this class instead of
+// AXObjectCacheImpl, refactor usages to use AXObjectCache instead (introducing
+// new public API methods or similar) and remove this class.
+class CORE_EXPORT AXObjectCacheBase : public AXObjectCache {
+ WTF_MAKE_NONCOPYABLE(AXObjectCacheBase);
+
+ public:
+ virtual ~AXObjectCacheBase() {}
+
+ virtual AXObject* Get(Node*) = 0;
+
+ protected:
+ AXObjectCacheBase() {}
+};
+
+// This is the only subclass of AXObjectCache.
+DEFINE_TYPE_CASTS(AXObjectCacheBase, AXObjectCache, cache, true, true);
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698