OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef AXObjectCacheBase_h | |
6 #define AXObjectCacheBase_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "core/dom/AXObjectCache.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class Node; | |
14 class AXObject; | |
15 | |
16 // AXObjectCacheBase is a temporary class that sits between AXObjectCache and | |
17 // AXObjectImpl and contains methods required by web/ that we don't want to be | |
18 // available in the public API (AXObjectCache). | |
19 // TODO(dmazzoni): Once all dependencies in web/ use this class instead of | |
20 // AXObjectCacheImpl, refactor usages to use AXObjectCache instead (introducing | |
21 // new public API methods or similar) and remove this class. | |
22 class CORE_EXPORT AXObjectCacheBase : public AXObjectCache { | |
23 WTF_MAKE_NONCOPYABLE(AXObjectCacheBase); | |
24 | |
25 public: | |
26 virtual AXObject* Get(Node*) = 0; | |
27 ~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.
| |
28 | |
29 protected: | |
30 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
| |
31 }; | |
32 | |
33 // This is the only subclass of AXObjectCache. | |
34 DEFINE_TYPE_CASTS(AXObjectCacheBase, AXObjectCache, cache, true, true); | |
35 | |
36 } // namespace blink | |
37 | |
38 #endif | |
OLD | NEW |