| Index: ui/accessibility/ax_node.cc
|
| diff --git a/ui/accessibility/ax_node.cc b/ui/accessibility/ax_node.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ff1f4e4a4f65c53e2dd7089cde834270af411984
|
| --- /dev/null
|
| +++ b/ui/accessibility/ax_node.cc
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +#include "ui/accessibility/ax_node.h"
|
| +
|
| +namespace ui {
|
| +
|
| +AXNode::AXNode()
|
| + : index_in_parent_(0),
|
| + parent_(NULL) {
|
| +}
|
| +
|
| +AXNode::~AXNode() {
|
| +}
|
| +
|
| +void AXNode::Init(AXNode* parent, int32 id, int32 index_in_parent) {
|
| + parent_ = parent;
|
| + data_.id = id;
|
| + index_in_parent_ = index_in_parent;
|
| +}
|
| +
|
| +void AXNode::SetData(const AXNodeData& src) {
|
| + data_ = src;
|
| +}
|
| +
|
| +void AXNode::UpdateIndexInParent(int index_in_parent) {
|
| + index_in_parent_ = index_in_parent;
|
| +}
|
| +
|
| +void AXNode::SwapChildren(std::vector<AXNode*>& children) {
|
| + children.swap(children_);
|
| +}
|
| +
|
| +void AXNode::Destroy() {
|
| + delete this;
|
| +}
|
| +
|
| +} // namespace ui
|
|
|