| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_UTILITY_CLOUD_PRINT_BITMAP_IMAGE_H_ | 5 #ifndef CHROME_UTILITY_CLOUD_PRINT_BITMAP_IMAGE_H_ |
| 6 #define CHROME_UTILITY_CLOUD_PRINT_BITMAP_IMAGE_H_ | 6 #define CHROME_UTILITY_CLOUD_PRINT_BITMAP_IMAGE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
| 11 | 11 |
| 12 namespace cloud_print { | 12 namespace cloud_print { |
| 13 | 13 |
| 14 class BitmapImage { | 14 class BitmapImage { |
| 15 public: | 15 public: |
| 16 enum Colorspace { | 16 enum Colorspace { |
| 17 // These are the only types PWGEncoder currently supports. | 17 // These are the only types PWGEncoder currently supports. |
| 18 RGBA, | 18 RGBA, |
| 19 BGRA | 19 BGRA |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 gfx::Size size_; | 35 gfx::Size size_; |
| 36 Colorspace colorspace_; | 36 Colorspace colorspace_; |
| 37 scoped_ptr<uint8[]> data_; | 37 scoped_ptr<uint8[]> data_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(BitmapImage); | 39 DISALLOW_COPY_AND_ASSIGN(BitmapImage); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace cloud_print | 42 } // namespace cloud_print |
| 43 | 43 |
| 44 #endif // CHROME_UTILITY_CLOUD_PRINT_BITMAP_IMAGE_H_ | 44 #endif // CHROME_UTILITY_CLOUD_PRINT_BITMAP_IMAGE_H_ |
| OLD | NEW |