Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.h

Issue 2468233003: [DevTools] Migrate Accessibility, Log, Worker to new style (Closed)
Patch Set: addressed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class AXObject; 14 class AXObject;
15 class InspectorDOMAgent; 15 class InspectorDOMAgent;
16 class Page; 16 class Page;
17 17
18 class MODULES_EXPORT InspectorAccessibilityAgent 18 class MODULES_EXPORT InspectorAccessibilityAgent
19 : public InspectorBaseAgent<protocol::Accessibility::Metainfo> { 19 : public InspectorBaseAgent<protocol::Accessibility::Metainfo> {
20 WTF_MAKE_NONCOPYABLE(InspectorAccessibilityAgent); 20 WTF_MAKE_NONCOPYABLE(InspectorAccessibilityAgent);
21 21
22 public: 22 public:
23 InspectorAccessibilityAgent(Page*, InspectorDOMAgent*); 23 InspectorAccessibilityAgent(Page*, InspectorDOMAgent*);
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 getAXNodeChain( 29 Response getAXNodeChain(
30 ErrorString*,
31 int domNodeId, 30 int domNodeId,
32 bool fetchAncestors, 31 bool fetchAncestors,
33 std::unique_ptr<protocol::Array<protocol::Accessibility::AXNode>>*) 32 std::unique_ptr<protocol::Array<protocol::Accessibility::AXNode>>*)
34 override; 33 override;
35 34
36 private: 35 private:
37 Member<Page> m_page; 36 Member<Page> m_page;
38 Member<InspectorDOMAgent> m_domAgent; 37 Member<InspectorDOMAgent> m_domAgent;
39 38
40 std::unique_ptr<protocol::Accessibility::AXNode> buildObjectForIgnoredNode( 39 std::unique_ptr<protocol::Accessibility::AXNode> buildObjectForIgnoredNode(
41 Node* domNode, 40 Node* domNode,
42 AXObject*) const; 41 AXObject*) const;
43 std::unique_ptr<protocol::Accessibility::AXNode> buildProtocolAXObject( 42 std::unique_ptr<protocol::Accessibility::AXNode> buildProtocolAXObject(
44 AXObject&) const; 43 AXObject&) const;
45 void fillCoreProperties(AXObject&, protocol::Accessibility::AXNode&) const; 44 void fillCoreProperties(AXObject&, protocol::Accessibility::AXNode&) const;
46 }; 45 };
47 46
48 } // namespace blink 47 } // namespace blink
49 48
50 #endif // InspectorAccessibilityAgent_h 49 #endif // InspectorAccessibilityAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698