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

Side by Side Diff: ui/gfx/point.h

Issue 10837041: Initial iOS bring up of ui. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Stuart feedback. Created 8 years, 4 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
« no previous file with comments | « build/all.gyp ('k') | ui/gfx/rect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_GFX_POINT_H_ 5 #ifndef UI_GFX_POINT_H_
6 #define UI_GFX_POINT_H_ 6 #define UI_GFX_POINT_H_
7 7
8 #include "ui/base/ui_export.h" 8 #include "ui/base/ui_export.h"
9 #include "ui/gfx/point_base.h" 9 #include "ui/gfx/point_base.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 typedef unsigned long DWORD; 12 typedef unsigned long DWORD;
13 typedef struct tagPOINT POINT; 13 typedef struct tagPOINT POINT;
14 #elif defined(OS_IOS)
15 #include <CoreGraphics/CoreGraphics.h>
14 #elif defined(OS_MACOSX) 16 #elif defined(OS_MACOSX)
15 #include <ApplicationServices/ApplicationServices.h> 17 #include <ApplicationServices/ApplicationServices.h>
16 #endif 18 #endif
17 19
18 namespace gfx { 20 namespace gfx {
19 21
20 // A point has an x and y coordinate. 22 // A point has an x and y coordinate.
21 class UI_EXPORT Point : public PointBase<Point, int> { 23 class UI_EXPORT Point : public PointBase<Point, int> {
22 public: 24 public:
23 Point(); 25 Point();
(...skipping 21 matching lines...) Expand all
45 std::string ToString() const; 47 std::string ToString() const;
46 }; 48 };
47 49
48 #if !defined(COMPILER_MSVC) 50 #if !defined(COMPILER_MSVC)
49 extern template class PointBase<Point, int>; 51 extern template class PointBase<Point, int>;
50 #endif 52 #endif
51 53
52 } // namespace gfx 54 } // namespace gfx
53 55
54 #endif // UI_GFX_POINT_H_ 56 #endif // UI_GFX_POINT_H_
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | ui/gfx/rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698