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

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

Issue 1550483002: Switch to standard integer types in ui/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-ui-events
Patch Set: Created 4 years, 12 months 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
« no previous file with comments | « ui/accessibility/ax_node.h ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/accessibility/ax_node.h" 5 #include "ui/accessibility/ax_node.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 AXNode::AXNode(AXNode* parent, int32 id, int32 index_in_parent) 9 AXNode::AXNode(AXNode* parent, int32_t id, int32_t index_in_parent)
10 : index_in_parent_(index_in_parent), 10 : index_in_parent_(index_in_parent), parent_(parent) {
11 parent_(parent) {
12 data_.id = id; 11 data_.id = id;
13 } 12 }
14 13
15 AXNode::~AXNode() { 14 AXNode::~AXNode() {
16 } 15 }
17 16
18 void AXNode::SetData(const AXNodeData& src) { 17 void AXNode::SetData(const AXNodeData& src) {
19 data_ = src; 18 data_ = src;
20 } 19 }
21 20
(...skipping 16 matching lines...) Expand all
38 bool AXNode::IsDescendantOf(AXNode* ancestor) { 37 bool AXNode::IsDescendantOf(AXNode* ancestor) {
39 if (this == ancestor) 38 if (this == ancestor)
40 return true; 39 return true;
41 else if (parent()) 40 else if (parent())
42 return parent()->IsDescendantOf(ancestor); 41 return parent()->IsDescendantOf(ancestor);
43 42
44 return false; 43 return false;
45 } 44 }
46 45
47 } // namespace ui 46 } // namespace ui
OLDNEW
« 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