OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/gfx/size.h" | 6 #include "base/gfx/size.h" |
7 #include "base/scoped_ptr.h" | |
8 | 7 |
9 class SkBitmap; | 8 class SkBitmap; |
10 | 9 |
11 namespace webkit_glue { | 10 namespace webkit_glue { |
12 | 11 |
13 // Provides an interface to WebKit's image decoders. | 12 // Provides an interface to WebKit's image decoders. |
14 // | 13 // |
15 // Note to future: This class should be deleted. We should have our own nice | 14 // Note to future: This class should be deleted. We should have our own nice |
16 // image decoders in base/gfx, and our port should use those. Currently, it's | 15 // image decoders in base/gfx, and our port should use those. Currently, it's |
17 // the other way around. | 16 // the other way around. |
(...skipping 11 matching lines...) Expand all Loading... |
29 SkBitmap Decode(const unsigned char* data, size_t size) const; | 28 SkBitmap Decode(const unsigned char* data, size_t size) const; |
30 | 29 |
31 private: | 30 private: |
32 // Size will be empty to get the largest possible size. | 31 // Size will be empty to get the largest possible size. |
33 gfx::Size desired_icon_size_; | 32 gfx::Size desired_icon_size_; |
34 | 33 |
35 DISALLOW_EVIL_CONSTRUCTORS(ImageDecoder); | 34 DISALLOW_EVIL_CONSTRUCTORS(ImageDecoder); |
36 }; | 35 }; |
37 | 36 |
38 } // namespace webkit_glue | 37 } // namespace webkit_glue |
OLD | NEW |