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

Unified Diff: chrome/common/gfx/path.h

Issue 28297: Implement gfx::Path on GTK. (Closed)
Patch Set: Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
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_
« chrome/chrome.gyp ('K') | « chrome/common/common.vcproj ('k') | chrome/common/gfx/path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698