summaryrefslogtreecommitdiffstats
path: root/ui/oak/oak_pretty_print.h
blob: 89dcfa4ad0bad86a3905b02a503cb9c0d6ffb82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_OAK_OAK_PRETTY_PRINT_H_
#define UI_OAK_OAK_PRETTY_PRINT_H_

#include "base/string16.h"

namespace gfx {
class Insets;
class Rect;
}

namespace oak {
namespace internal {

// Functions that return a string consisting of a prefix and the supplied value
// converted to a pretty string representation.
string16 PropertyWithInteger(const std::string& prefix, int value);
string16 PropertyWithVoidStar(const std::string& prefix, void* ptr);
string16 PropertyWithBool(const std::string& prefix, bool value);
string16 PropertyWithBounds(const std::string& prefix, const gfx::Rect& bounds);
string16 PropertyWithInsets(const std::string& prefix,
                            const gfx::Insets& insets);

}  // namespace internal
}  // namespace oak

#endif  // UI_OAK_OAK_PRETTY_PRINT_H_