OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/oak/oak_pretty_print.h" | 5 #include "ui/oak/oak_pretty_print.h" |
6 | 6 |
7 #include "base/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "ui/gfx/insets.h" | 11 #include "ui/gfx/insets.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
13 | 13 |
14 namespace oak { | 14 namespace oak { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 base::string16 PropertyWithInteger(const std::string& prefix, int value) { | 17 base::string16 PropertyWithInteger(const std::string& prefix, int value) { |
18 return ASCIIToUTF16(prefix) + base::IntToString16(value); | 18 return ASCIIToUTF16(prefix) + base::IntToString16(value); |
19 } | 19 } |
(...skipping 14 matching lines...) Expand all Loading... |
34 return ASCIIToUTF16(prefix + bounds.ToString()); | 34 return ASCIIToUTF16(prefix + bounds.ToString()); |
35 } | 35 } |
36 | 36 |
37 base::string16 PropertyWithInsets(const std::string& prefix, | 37 base::string16 PropertyWithInsets(const std::string& prefix, |
38 const gfx::Insets& insets) { | 38 const gfx::Insets& insets) { |
39 return ASCIIToUTF16(prefix + insets.ToString()); | 39 return ASCIIToUTF16(prefix + insets.ToString()); |
40 } | 40 } |
41 | 41 |
42 } // namespace internal | 42 } // namespace internal |
43 } // namespace oak | 43 } // namespace oak |
OLD | NEW |