| Index: chrome/common/gfx/path.h
|
| diff --git a/chrome/common/gfx/path.h b/chrome/common/gfx/path.h
|
| index c23ecd18d988ed42f6cea414176fa3979399bcc9..bbdaea1884d4256c75838889befd247fb8aec528 100644
|
| --- a/chrome/common/gfx/path.h
|
| +++ b/chrome/common/gfx/path.h
|
| @@ -2,29 +2,39 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_COMMON_GFX_CHROME_PATH_H__
|
| -#define CHROME_COMMON_GFX_CHROME_PATH_H__
|
| +#ifndef CHROME_COMMON_GFX_CHROME_PATH_H_
|
| +#define CHROME_COMMON_GFX_CHROME_PATH_H_
|
|
|
| +#include "base/basictypes.h"
|
| +
|
| +#if defined(OS_WIN)
|
| #include <windows.h>
|
| +#elif defined(OS_LINUX)
|
| +typedef struct _GdkRegion GdkRegion;
|
| +#endif
|
|
|
| -#include "base/basictypes.h"
|
| #include "SkPath.h"
|
|
|
| namespace gfx {
|
|
|
| class Path : public SkPath {
|
| public:
|
| - Path();
|
| + Path() : SkPath() { moveTo(0, 0); }
|
|
|
| +#if defined(OS_WIN)
|
| // Creates a HRGN from the path. The caller is responsible for freeing
|
| // resources used by this region.
|
| HRGN CreateHRGN() const;
|
| +#elif defined(OS_LINUX)
|
| + // Creates a Gdkregion from the path. The caller is responsible for freeing
|
| + // resources used by this region.
|
| + GdkRegion* CreateGdkRegion() const;
|
| +#endif
|
|
|
| private:
|
| - DISALLOW_EVIL_CONSTRUCTORS(Path);
|
| + DISALLOW_COPY_AND_ASSIGN(Path);
|
| };
|
|
|
| }
|
|
|
| -#endif // #ifndef CHROME_COMMON_GFX_CHROME_PATH_H__
|
| -
|
| +#endif // #ifndef CHROME_COMMON_GFX_CHROME_PATH_H_
|
|
|