OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/gfx/point.h" | 5 #include "base/gfx/point.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 #elif defined(OS_MACOSX) | 29 #elif defined(OS_MACOSX) |
30 Point::Point(const CGPoint& point) : x_(point.x), y_(point.y) { | 30 Point::Point(const CGPoint& point) : x_(point.x), y_(point.y) { |
31 } | 31 } |
32 | 32 |
33 CGPoint Point::ToCGPoint() const { | 33 CGPoint Point::ToCGPoint() const { |
34 return CGPointMake(x_, y_); | 34 return CGPointMake(x_, y_); |
35 } | 35 } |
36 #endif | 36 #endif |
37 | 37 |
38 } // namespace gfx | 38 } // namespace gfx |
39 | |
OLD | NEW |