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

Side by Side Diff: ui/accessibility/ax_node_data.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
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 #ifndef UI_ACCESSIBILITY_AX_NODE_DATA_H_ 5 #ifndef UI_ACCESSIBILITY_AX_NODE_DATA_H_
6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_ 6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 std::vector<int32_t> child_ids; 117 std::vector<int32_t> child_ids;
118 118
119 // The object's location relative to its window or frame. 119 // The object's location relative to its window or frame.
120 gfx::Rect location; 120 gfx::Rect location;
121 121
122 // An additional transform to apply to position this object and its subtree. 122 // An additional transform to apply to position this object and its subtree.
123 // NOTE: this member is a scoped_ptr because it's rare and gfx::Transform 123 // NOTE: this member is a scoped_ptr because it's rare and gfx::Transform
124 // takes up a fair amount of space. The assignment operator and copy 124 // takes up a fair amount of space. The assignment operator and copy
125 // constructor both make a duplicate of the owned pointer, so it acts more 125 // constructor both make a duplicate of the owned pointer, so it acts more
126 // like a member than a pointer. 126 // like a member than a pointer.
127 scoped_ptr<gfx::Transform> transform; 127 std::unique_ptr<gfx::Transform> transform;
128 }; 128 };
129 129
130 } // namespace ui 130 } // namespace ui
131 131
132 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ 132 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_generated_tree_unittest.cc ('k') | ui/accessibility/ax_tree_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698