1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_ 6 #define UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_ 7 8 #include "base/memory/scoped_ptr.h" 9 10 typedef struct caca_canvas caca_canvas_t; 11 typedef struct caca_dither caca_dither_t; 12 typedef struct caca_display caca_display_t; 13 14 namespace ui { 15 16 struct CacaCanvasDeleter { 17 void operator()(caca_canvas_t* canvas) const; 18 }; 19 20 struct CacaDisplayDeleter { 21 void operator()(caca_display_t* display) const; 22 }; 23 24 struct CacaDitherDeleter { 25 void operator()(caca_dither_t* dither) const; 26 }; 27 28 typedef scoped_ptr<caca_canvas_t, CacaCanvasDeleter> ScopedCacaCanvas; 29 typedef scoped_ptr<caca_display_t, CacaDisplayDeleter> ScopedCacaDisplay; 30 typedef scoped_ptr<caca_dither_t, CacaDitherDeleter> ScopedCacaDither; 31 32 } // namespace ui 33 34 #endif // UI_OZONE_PLATFORM_CACA_SCOPED_CACA_TYPES_H_ 35