OLD | NEW |
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 BASE_GFX_GTK_UTIL_H_ | 5 #ifndef BASE_GFX_GTK_UTIL_H_ |
6 #define BASE_GFX_GTK_UTIL_H_ | 6 #define BASE_GFX_GTK_UTIL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Loading... |
58 | 58 |
59 // It's not legal C++ to have a templatized typedefs, so we wrap it in a | 59 // It's not legal C++ to have a templatized typedefs, so we wrap it in a |
60 // struct. When using this, you need to include ::Type. E.g., | 60 // struct. When using this, you need to include ::Type. E.g., |
61 // ScopedGObject<GdkPixbufLoader>::Type loader(gdk_pixbuf_loader_new()); | 61 // ScopedGObject<GdkPixbufLoader>::Type loader(gdk_pixbuf_loader_new()); |
62 template<class T> | 62 template<class T> |
63 struct ScopedGObject { | 63 struct ScopedGObject { |
64 typedef scoped_ptr_malloc<T, GObjectUnrefer<T> > Type; | 64 typedef scoped_ptr_malloc<T, GObjectUnrefer<T> > Type; |
65 }; | 65 }; |
66 | 66 |
67 #endif // BASE_GFX_GTK_UTIL_H_ | 67 #endif // BASE_GFX_GTK_UTIL_H_ |
OLD | NEW |