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