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

Side by Side Diff: app/gfx/path.h

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « app/gfx/font.h ('k') | base/base.gyp » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 APP_GFX_PATH_H_ 5 #ifndef APP_GFX_PATH_H_
6 #define APP_GFX_PATH_H_ 6 #define APP_GFX_PATH_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 #elif defined(OS_LINUX) 12 #elif defined(USE_X11)
13 typedef struct _GdkRegion GdkRegion; 13 typedef struct _GdkRegion GdkRegion;
14 #endif 14 #endif
15 15
16 #include "third_party/skia/include/core/SkPath.h" 16 #include "third_party/skia/include/core/SkPath.h"
17 17
18 namespace gfx { 18 namespace gfx {
19 19
20 class Path : public SkPath { 20 class Path : public SkPath {
21 public: 21 public:
22 Path() : SkPath() { moveTo(0, 0); } 22 Path() : SkPath() { moveTo(0, 0); }
23 23
24 #if defined(OS_WIN) 24 #if defined(OS_WIN)
25 // Creates a HRGN from the path. The caller is responsible for freeing 25 // Creates a HRGN from the path. The caller is responsible for freeing
26 // resources used by this region. This only supports polygon paths. 26 // resources used by this region. This only supports polygon paths.
27 HRGN CreateHRGN() const; 27 HRGN CreateHRGN() const;
28 #elif defined(OS_LINUX) 28 #elif defined(USE_X11)
29 // Creates a Gdkregion from the path. The caller is responsible for freeing 29 // Creates a Gdkregion from the path. The caller is responsible for freeing
30 // resources used by this region. This only supports polygon paths. 30 // resources used by this region. This only supports polygon paths.
31 // WARNING: this returns NULL for an empty Path. 31 // WARNING: this returns NULL for an empty Path.
32 GdkRegion* CreateGdkRegion() const; 32 GdkRegion* CreateGdkRegion() const;
33 #endif 33 #endif
34 34
35 private: 35 private:
36 DISALLOW_COPY_AND_ASSIGN(Path); 36 DISALLOW_COPY_AND_ASSIGN(Path);
37 }; 37 };
38 38
39 } 39 }
40 40
41 #endif // APP_GFX_PATH_H_ 41 #endif // APP_GFX_PATH_H_
OLDNEW
« no previous file with comments | « app/gfx/font.h ('k') | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698