| 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 InspectorAccessibilityAgent_h | 5 #ifndef InspectorAccessibilityAgent_h |
| 6 #define InspectorAccessibilityAgent_h | 6 #define InspectorAccessibilityAgent_h |
| 7 | 7 |
| 8 #include "core/inspector/InspectorBaseAgent.h" | 8 #include "core/inspector/InspectorBaseAgent.h" |
| 9 #include "core/inspector/protocol/Accessibility.h" | 9 #include "core/inspector/protocol/Accessibility.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 : public InspectorBaseAgent<protocol::Accessibility::Metainfo> { | 23 : public InspectorBaseAgent<protocol::Accessibility::Metainfo> { |
| 24 WTF_MAKE_NONCOPYABLE(InspectorAccessibilityAgent); | 24 WTF_MAKE_NONCOPYABLE(InspectorAccessibilityAgent); |
| 25 | 25 |
| 26 public: | 26 public: |
| 27 InspectorAccessibilityAgent(Page*, InspectorDOMAgent*); | 27 InspectorAccessibilityAgent(Page*, InspectorDOMAgent*); |
| 28 | 28 |
| 29 // Base agent methods. | 29 // Base agent methods. |
| 30 DECLARE_VIRTUAL_TRACE(); | 30 DECLARE_VIRTUAL_TRACE(); |
| 31 | 31 |
| 32 // Protocol methods. | 32 // Protocol methods. |
| 33 Response getPartialAXTree( | 33 protocol::Response getPartialAXTree( |
| 34 int domNodeId, | 34 int domNodeId, |
| 35 Maybe<bool> fetchRelatives, | 35 protocol::Maybe<bool> fetchRelatives, |
| 36 std::unique_ptr<protocol::Array<protocol::Accessibility::AXNode>>*) | 36 std::unique_ptr<protocol::Array<protocol::Accessibility::AXNode>>*) |
| 37 override; | 37 override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 std::unique_ptr<AXNode> buildObjectForIgnoredNode( | 40 std::unique_ptr<AXNode> buildObjectForIgnoredNode( |
| 41 Node* domNode, | 41 Node* domNode, |
| 42 AXObject*, | 42 AXObject*, |
| 43 bool fetchRelatives, | 43 bool fetchRelatives, |
| 44 std::unique_ptr<protocol::Array<AXNode>>& nodes, | 44 std::unique_ptr<protocol::Array<AXNode>>& nodes, |
| 45 AXObjectCacheImpl&) const; | 45 AXObjectCacheImpl&) const; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 std::unique_ptr<protocol::Array<AXNode>>& nodes, | 80 std::unique_ptr<protocol::Array<AXNode>>& nodes, |
| 81 AXObjectCacheImpl&) const; | 81 AXObjectCacheImpl&) const; |
| 82 | 82 |
| 83 Member<Page> m_page; | 83 Member<Page> m_page; |
| 84 Member<InspectorDOMAgent> m_domAgent; | 84 Member<InspectorDOMAgent> m_domAgent; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace blink | 87 } // namespace blink |
| 88 | 88 |
| 89 #endif // InspectorAccessibilityAgent_h | 89 #endif // InspectorAccessibilityAgent_h |
| OLD | NEW |