| 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/InspectorFrontend.h" | 8 #include "core/InspectorFrontend.h" |
| 9 #include "core/inspector/InspectorBaseAgent.h" | 9 #include "core/inspector/InspectorBaseAgent.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 11 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class Page; | 15 class Page; |
| 16 | 16 |
| 17 class MODULES_EXPORT InspectorAccessibilityAgent : public InspectorBaseAgent<Ins
pectorAccessibilityAgent, InspectorFrontend::Accessibility>, public InspectorBac
kendDispatcher::AccessibilityCommandHandler { | 17 class MODULES_EXPORT InspectorAccessibilityAgent : public InspectorBaseAgent<Ins
pectorAccessibilityAgent, InspectorFrontend::Accessibility>, public InspectorBac
kendDispatcher::AccessibilityCommandHandler { |
| 18 WTF_MAKE_NONCOPYABLE(InspectorAccessibilityAgent); | 18 WTF_MAKE_NONCOPYABLE(InspectorAccessibilityAgent); |
| 19 public: | 19 public: |
| 20 static PassOwnPtrWillBeRawPtr<InspectorAccessibilityAgent> create(Page* page
) | 20 static RawPtr<InspectorAccessibilityAgent> create(Page* page) |
| 21 { | 21 { |
| 22 return adoptPtrWillBeNoop(new InspectorAccessibilityAgent(page)); | 22 return (new InspectorAccessibilityAgent(page)); |
| 23 } | 23 } |
| 24 | 24 |
| 25 // Base agent methods. | 25 // Base agent methods. |
| 26 DECLARE_VIRTUAL_TRACE(); | 26 DECLARE_VIRTUAL_TRACE(); |
| 27 | 27 |
| 28 // Protocol methods. | 28 // Protocol methods. |
| 29 void getAXNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::Accessibility::
AXNode>& accessibilityNode) override; | 29 void getAXNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::Accessibility::
AXNode>& accessibilityNode) override; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 explicit InspectorAccessibilityAgent(Page*); | 32 explicit InspectorAccessibilityAgent(Page*); |
| 33 | 33 |
| 34 RawPtrWillBeMember<Page> m_page; | 34 Member<Page> m_page; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace blink | 37 } // namespace blink |
| 38 | 38 |
| 39 #endif // InspectorAccessibilityAgent_h | 39 #endif // InspectorAccessibilityAgent_h |
| OLD | NEW |