OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "modules/accessibility/InspectorAccessibilityAgent.h" | 5 #include "modules/accessibility/InspectorAccessibilityAgent.h" |
6 | 6 |
7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
8 #include "core/dom/AXObjectCache.h" | 8 #include "core/dom/AXObjectCache.h" |
9 #include "core/dom/DOMNodeIds.h" | 9 #include "core/dom/DOMNodeIds.h" |
10 #include "core/dom/Element.h" | 10 #include "core/dom/Element.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 nodeObject->setProperties(std::move(properties)); | 352 nodeObject->setProperties(std::move(properties)); |
353 } | 353 } |
354 | 354 |
355 fillCoreProperties(axObject, nodeObject.get()); | 355 fillCoreProperties(axObject, nodeObject.get()); |
356 return nodeObject; | 356 return nodeObject; |
357 } | 357 } |
358 | 358 |
359 } // namespace | 359 } // namespace |
360 | 360 |
361 InspectorAccessibilityAgent::InspectorAccessibilityAgent(Page* page, InspectorDO
MAgent* domAgent) | 361 InspectorAccessibilityAgent::InspectorAccessibilityAgent(Page* page, InspectorDO
MAgent* domAgent) |
362 : InspectorBaseAgent<InspectorAccessibilityAgent, protocol::Accessibility::F
rontend>("Accessibility") | 362 : m_page(page) |
363 , m_page(page) | |
364 , m_domAgent(domAgent) | 363 , m_domAgent(domAgent) |
365 { | 364 { |
366 } | 365 } |
367 | 366 |
368 void InspectorAccessibilityAgent::getAXNode(ErrorString* errorString, int nodeId
, Maybe<AXNode>* accessibilityNode) | 367 void InspectorAccessibilityAgent::getAXNode(ErrorString* errorString, int nodeId
, Maybe<AXNode>* accessibilityNode) |
369 { | 368 { |
370 Frame* mainFrame = m_page->mainFrame(); | 369 Frame* mainFrame = m_page->mainFrame(); |
371 if (!mainFrame->isLocalFrame()) { | 370 if (!mainFrame->isLocalFrame()) { |
372 *errorString = "Can't inspect out of process frames yet"; | 371 *errorString = "Can't inspect out of process frames yet"; |
373 return; | 372 return; |
(...skipping 27 matching lines...) Expand all Loading... |
401 } | 400 } |
402 | 401 |
403 DEFINE_TRACE(InspectorAccessibilityAgent) | 402 DEFINE_TRACE(InspectorAccessibilityAgent) |
404 { | 403 { |
405 visitor->trace(m_page); | 404 visitor->trace(m_page); |
406 visitor->trace(m_domAgent); | 405 visitor->trace(m_domAgent); |
407 InspectorBaseAgent::trace(visitor); | 406 InspectorBaseAgent::trace(visitor); |
408 } | 407 } |
409 | 408 |
410 } // namespace blink | 409 } // namespace blink |
OLD | NEW |