| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 GFX_SCOPED_IMAGE_H_ | 5 #ifndef UI_GFX_SCOPED_IMAGE_H_ |
| 6 #define GFX_SCOPED_IMAGE_H_ | 6 #define UI_GFX_SCOPED_IMAGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "gfx/native_widget_types.h" | 11 #include "gfx/native_widget_types.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 | 13 |
| 14 #if defined(OS_LINUX) | 14 #if defined(OS_LINUX) |
| 15 #include <glib-object.h> | 15 #include <glib-object.h> |
| 16 #elif defined(OS_MACOSX) | 16 #elif defined(OS_MACOSX) |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 DISALLOW_COPY_AND_ASSIGN(ScopedImage); | 137 DISALLOW_COPY_AND_ASSIGN(ScopedImage); |
| 138 }; | 138 }; |
| 139 #endif // defined(OS_LINUX) | 139 #endif // defined(OS_LINUX) |
| 140 | 140 |
| 141 // Typedef ScopedNativeImage to the default template argument. This allows for | 141 // Typedef ScopedNativeImage to the default template argument. This allows for |
| 142 // easy exchange between gfx::NativeImage and a gfx::ScopedNativeImage. | 142 // easy exchange between gfx::NativeImage and a gfx::ScopedNativeImage. |
| 143 typedef ScopedImage<> ScopedNativeImage; | 143 typedef ScopedImage<> ScopedNativeImage; |
| 144 | 144 |
| 145 } // namespace gfx | 145 } // namespace gfx |
| 146 | 146 |
| 147 #endif // GFX_SCOPED_IMAGE_H_ | 147 #endif // UI_GFX_SCOPED_IMAGE_H_ |
| OLD | NEW |