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/gfx/rect.h" | 5 #include "ui/gfx/rect.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #elif defined(OS_MACOSX) | 9 #elif defined(OS_MACOSX) |
10 #include <CoreGraphics/CGGeometry.h> | 10 #include <ApplicationServices/ApplicationServices.h> |
11 #elif defined(TOOLKIT_GTK) | 11 #elif defined(TOOLKIT_GTK) |
12 #include <gdk/gdk.h> | 12 #include <gdk/gdk.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "ui/gfx/insets.h" | 17 #include "ui/gfx/insets.h" |
18 #include "ui/gfx/rect_base_impl.h" | 18 #include "ui/gfx/rect_base_impl.h" |
19 | 19 |
20 namespace gfx { | 20 namespace gfx { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 #endif | 109 #endif |
110 | 110 |
111 std::string Rect::ToString() const { | 111 std::string Rect::ToString() const { |
112 return base::StringPrintf("%s %s", | 112 return base::StringPrintf("%s %s", |
113 origin().ToString().c_str(), | 113 origin().ToString().c_str(), |
114 size().ToString().c_str()); | 114 size().ToString().c_str()); |
115 } | 115 } |
116 | 116 |
117 } // namespace gfx | 117 } // namespace gfx |
OLD | NEW |