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..0f0bedc69c5afa61f7a1bbfb68556d760cb330f4 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/dom/AXObjectCacheBase.h |
@@ -0,0 +1,38 @@ |
+// 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 AXObject* Get(Node*) = 0; |
+ ~AXObjectCacheBase() {} |
slangley
2017/05/15 05:27:19
Probably should be virtual right?
sashab
2017/05/15 05:50:22
Done. Also moved it above the other method.
|
+ |
+ protected: |
+ AXObjectCacheBase() : AXObjectCache(){}; |
slangley
2017/05/15 05:27:19
Do we need this? I think it should automatically i
sashab
2017/05/15 05:50:22
I get this error when I remove it:
../../third_pa
|
+}; |
+ |
+// This is the only subclass of AXObjectCache. |
+DEFINE_TYPE_CASTS(AXObjectCacheBase, AXObjectCache, cache, true, true); |
+ |
+} // namespace blink |
+ |
+#endif |