OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef InspectorTypeBuilderHelper_h | 5 #ifndef InspectorTypeBuilderHelper_h |
6 #define InspectorTypeBuilderHelper_h | 6 #define InspectorTypeBuilderHelper_h |
7 | 7 |
8 #include "core/inspector/protocol/Accessibility.h" | 8 #include "core/inspector/protocol/Accessibility.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "modules/accessibility/AXObject.h" | |
11 #include "modules/accessibility/AXObjectCacheImpl.h" | 10 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 11 #include "modules/accessibility/AXObjectImpl.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 using namespace protocol::Accessibility; | 15 using namespace protocol::Accessibility; |
16 | 16 |
17 std::unique_ptr<AXProperty> CreateProperty(const String& name, | 17 std::unique_ptr<AXProperty> CreateProperty(const String& name, |
18 std::unique_ptr<AXValue>); | 18 std::unique_ptr<AXValue>); |
19 std::unique_ptr<AXProperty> CreateProperty(IgnoredReason); | 19 std::unique_ptr<AXProperty> CreateProperty(IgnoredReason); |
20 | 20 |
21 std::unique_ptr<AXValue> CreateValue( | 21 std::unique_ptr<AXValue> CreateValue( |
22 const String& value, | 22 const String& value, |
23 const String& type = AXValueTypeEnum::String); | 23 const String& type = AXValueTypeEnum::String); |
24 std::unique_ptr<AXValue> CreateValue( | 24 std::unique_ptr<AXValue> CreateValue( |
25 int value, | 25 int value, |
26 const String& type = AXValueTypeEnum::Integer); | 26 const String& type = AXValueTypeEnum::Integer); |
27 std::unique_ptr<AXValue> CreateValue( | 27 std::unique_ptr<AXValue> CreateValue( |
28 float value, | 28 float value, |
29 const String& value_type = AXValueTypeEnum::Number); | 29 const String& value_type = AXValueTypeEnum::Number); |
30 std::unique_ptr<AXValue> CreateBooleanValue( | 30 std::unique_ptr<AXValue> CreateBooleanValue( |
31 bool value, | 31 bool value, |
32 const String& value_type = AXValueTypeEnum::Boolean); | 32 const String& value_type = AXValueTypeEnum::Boolean); |
33 std::unique_ptr<AXValue> CreateRelatedNodeListValue( | 33 std::unique_ptr<AXValue> CreateRelatedNodeListValue( |
34 const AXObject&, | 34 const AXObjectImpl&, |
35 String* name = nullptr, | 35 String* name = nullptr, |
36 const String& value_type = AXValueTypeEnum::Idref); | 36 const String& value_type = AXValueTypeEnum::Idref); |
37 std::unique_ptr<AXValue> CreateRelatedNodeListValue(AXRelatedObjectVector&, | 37 std::unique_ptr<AXValue> CreateRelatedNodeListValue(AXRelatedObjectVector&, |
38 const String& value_type); | 38 const String& value_type); |
39 std::unique_ptr<AXValue> CreateRelatedNodeListValue( | 39 std::unique_ptr<AXValue> CreateRelatedNodeListValue( |
40 AXObject::AXObjectVector& ax_objects, | 40 AXObjectImpl::AXObjectVector& ax_objects, |
41 const String& value_type = AXValueTypeEnum::IdrefList); | 41 const String& value_type = AXValueTypeEnum::IdrefList); |
42 | 42 |
43 std::unique_ptr<AXValueSource> CreateValueSource(NameSource&); | 43 std::unique_ptr<AXValueSource> CreateValueSource(NameSource&); |
44 | 44 |
45 } // namespace blink | 45 } // namespace blink |
46 | 46 |
47 #endif // InspectorAccessibilityAgent_h | 47 #endif // InspectorAccessibilityAgent_h |
OLD | NEW |