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

Unified 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: Git rid of AX_EXPORT from templatized function 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/ax_node.h ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..34426462191eeef4d4da5a7e634c0c9a4cc73938
--- /dev/null
+++ b/ui/accessibility/ax_node.cc
@@ -0,0 +1,34 @@
+// 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(AXNode* parent, int32 id, int32 index_in_parent)
+ : index_in_parent_(index_in_parent),
+ parent_(parent) {
+ data_.id = id;
+}
+
+AXNode::~AXNode() {
+}
+
+void AXNode::SetData(const AXNodeData& src) {
+ data_ = src;
+}
+
+void AXNode::SetIndexInParent(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
« no previous file with comments | « ui/accessibility/ax_node.h ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698