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

Side by Side Diff: mojo/services/view_manager/test_change_tracker.cc

Issue 418983002: Nukes view_manager namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « mojo/services/view_manager/test_change_tracker.h ('k') | mojo/services/view_manager/view.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/services/view_manager/test_change_tracker.h" 5 #include "mojo/services/view_manager/test_change_tracker.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "mojo/common/common_type_converters.h" 9 #include "mojo/common/common_type_converters.h"
10 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" 10 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h"
11 #include "mojo/services/public/cpp/view_manager/util.h" 11 #include "mojo/services/public/cpp/view_manager/util.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace view_manager {
15 namespace service { 14 namespace service {
16 15
17 std::string NodeIdToString(Id id) { 16 std::string NodeIdToString(Id id) {
18 return (id == 0) ? "null" : 17 return (id == 0) ? "null" :
19 base::StringPrintf("%d,%d", HiWord(id), LoWord(id)); 18 base::StringPrintf("%d,%d", HiWord(id), LoWord(id));
20 } 19 }
21 20
22 namespace { 21 namespace {
23 22
24 std::string RectToString(const gfx::Rect& rect) { 23 std::string RectToString(const gfx::Rect& rect) {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 238 }
240 239
241 std::string TestNode::ToString() const { 240 std::string TestNode::ToString() const {
242 return base::StringPrintf("node=%s parent=%s view=%s", 241 return base::StringPrintf("node=%s parent=%s view=%s",
243 NodeIdToString(node_id).c_str(), 242 NodeIdToString(node_id).c_str(),
244 NodeIdToString(parent_id).c_str(), 243 NodeIdToString(parent_id).c_str(),
245 NodeIdToString(view_id).c_str()); 244 NodeIdToString(view_id).c_str());
246 } 245 }
247 246
248 } // namespace service 247 } // namespace service
249 } // namespace view_manager
250 } // namespace mojo 248 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/test_change_tracker.h ('k') | mojo/services/view_manager/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698