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

Unified Diff: ui/ozone/platform/caca/scoped_caca_types.h

Issue 387993002: ozone: caca: Preparatory work for resize / multiple windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « ui/ozone/platform/caca/caca_connection.cc ('k') | ui/ozone/platform/caca/scoped_caca_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/scoped_caca_types.h
diff --git a/ui/ozone/platform/caca/scoped_caca_types.h b/ui/ozone/platform/caca/scoped_caca_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..d7894760ad777188fe69a87ef5cbd3cd81ed97ed
--- /dev/null
+++ b/ui/ozone/platform/caca/scoped_caca_types.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_
+#define UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_
+
+#include "base/memory/scoped_ptr.h"
+
+typedef struct caca_canvas caca_canvas_t;
+typedef struct caca_dither caca_dither_t;
+typedef struct caca_display caca_display_t;
+
+namespace ui {
+
+struct CacaCanvasDeleter {
+ void operator()(caca_canvas_t* canvas) const;
+};
+
+struct CacaDisplayDeleter {
+ void operator()(caca_display_t* display) const;
+};
+
+struct CacaDitherDeleter {
+ void operator()(caca_dither_t* dither) const;
+};
+
+typedef scoped_ptr<caca_canvas_t, CacaCanvasDeleter> ScopedCacaCanvas;
+typedef scoped_ptr<caca_display_t, CacaDisplayDeleter> ScopedCacaDisplay;
+typedef scoped_ptr<caca_dither_t, CacaDitherDeleter> ScopedCacaDither;
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_
« no previous file with comments | « ui/ozone/platform/caca/caca_connection.cc ('k') | ui/ozone/platform/caca/scoped_caca_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698