atom-nuclide
Version:
A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.
30 lines (25 loc) • 904 B
JavaScript
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @constructor
* @extends {WebInspector.SDKModel}
* @param {!WebInspector.Target} target
*/
WebInspector.AccessibilityModel = function(target)
{
WebInspector.SDKModel.call(this, WebInspector.AccessibilityModel, target);
this._agent = target.accessibilityAgent();
};
WebInspector.AccessibilityModel.prototype = {
/**
* @param {!DOMAgent.NodeId} nodeId
* @param {function(?AccessibilityAgent.AXNode)} userCallback
*/
getAXNode: function(nodeId, userCallback)
{
var wrappedCallback = InspectorBackend.wrapClientCallback(userCallback, "AccessibilityAgent.getAXNode(): ");
this._agent.getAXNode(nodeId, wrappedCallback);
},
__proto__: WebInspector.SDKModel.prototype
}