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

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

Issue 640893003: Move mojo/services/public/cpp TypeConverters to mojo/converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore the directory and component structures and target names. Created 6 years, 2 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 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/converters/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 service { 14 namespace service {
15 15
16 std::string ViewIdToString(Id id) { 16 std::string ViewIdToString(Id id) {
17 return (id == 0) ? "null" : 17 return (id == 0) ? "null" :
18 base::StringPrintf("%d,%d", HiWord(id), LoWord(id)); 18 base::StringPrintf("%d,%d", HiWord(id), LoWord(id));
19 } 19 }
20 20
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 std::string TestView::ToString2() const { 235 std::string TestView::ToString2() const {
236 return base::StringPrintf("view=%s parent=%s visible=%s drawn=%s", 236 return base::StringPrintf("view=%s parent=%s visible=%s drawn=%s",
237 ViewIdToString(view_id).c_str(), 237 ViewIdToString(view_id).c_str(),
238 ViewIdToString(parent_id).c_str(), 238 ViewIdToString(parent_id).c_str(),
239 visible ? "true" : "false", 239 visible ? "true" : "false",
240 drawn ? "true" : "false"); 240 drawn ? "true" : "false");
241 } 241 }
242 242
243 } // namespace service 243 } // namespace service
244 } // namespace mojo 244 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/display_manager.cc ('k') | mojo/services/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698