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

Side by Side Diff: ui/accessibility/ax_node.cc

Issue 67283004: First step to move common accessibility code out of content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get rid of content change Created 7 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 | Annotate | Revision Log
OLDNEW
(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()
10 : index_in_parent_(0),
11 parent_(NULL) {
12 }
13
14 AXNode::~AXNode() {
15 }
16
17 void AXNode::Init(AXNode* parent, int32 id, int32 index_in_parent) {
18 parent_ = parent;
19 data_.id = id;
20 index_in_parent_ = index_in_parent;
21 }
22
23 void AXNode::SetData(const AXNodeData& src) {
24 data_ = src;
25 }
26
27 void AXNode::UpdateIndexInParent(int index_in_parent) {
28 index_in_parent_ = index_in_parent;
29 }
30
31 void AXNode::SwapChildren(std::vector<AXNode*>& children) {
32 children.swap(children_);
33 }
34
35 void AXNode::Destroy() {
36 delete this;
37 }
38
39 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698