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 PRINTING_IMAGE_H_ | 5 #ifndef PRINTING_IMAGE_H_ |
6 #define PRINTING_IMAGE_H_ | 6 #define PRINTING_IMAGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "gfx/size.h" | |
14 #include "printing/native_metafile.h" | 13 #include "printing/native_metafile.h" |
| 14 #include "ui/gfx/size.h" |
15 | 15 |
16 class FilePath; | 16 class FilePath; |
17 | 17 |
18 namespace printing { | 18 namespace printing { |
19 | 19 |
20 // Lightweight raw-bitmap management. The image, once initialized, is immutable. | 20 // Lightweight raw-bitmap management. The image, once initialized, is immutable. |
21 // The main purpose is testing image contents. | 21 // The main purpose is testing image contents. |
22 class Image { | 22 class Image { |
23 public: | 23 public: |
24 // Creates the image from the given file on disk. Uses extension to | 24 // Creates the image from the given file on disk. Uses extension to |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Flag to signal if the comparison functions should ignore the alpha channel. | 88 // Flag to signal if the comparison functions should ignore the alpha channel. |
89 const bool ignore_alpha_; // Currently always true. | 89 const bool ignore_alpha_; // Currently always true. |
90 | 90 |
91 // Prevent operator= (this function has no implementation) | 91 // Prevent operator= (this function has no implementation) |
92 Image& operator=(const Image& image); | 92 Image& operator=(const Image& image); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace printing | 95 } // namespace printing |
96 | 96 |
97 #endif // PRINTING_IMAGE_H_ | 97 #endif // PRINTING_IMAGE_H_ |
OLD | NEW |