OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/accessibility/ax_node.h" |
| 6 |
| 7 namespace ui { |
| 8 |
| 9 AXNode::AXNode(AXNode* parent, int32 id, int32 index_in_parent) |
| 10 : index_in_parent_(index_in_parent), |
| 11 parent_(parent) { |
| 12 data_.id = id; |
| 13 } |
| 14 |
| 15 AXNode::~AXNode() { |
| 16 } |
| 17 |
| 18 void AXNode::SetData(const AXNodeData& src) { |
| 19 data_ = src; |
| 20 } |
| 21 |
| 22 void AXNode::SetIndexInParent(int index_in_parent) { |
| 23 index_in_parent_ = index_in_parent; |
| 24 } |
| 25 |
| 26 void AXNode::SwapChildren(std::vector<AXNode*>& children) { |
| 27 children.swap(children_); |
| 28 } |
| 29 |
| 30 void AXNode::Destroy() { |
| 31 delete this; |
| 32 } |
| 33 |
| 34 } // namespace ui |
OLD | NEW |