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 #include "printing/image.h" | 5 #include "printing/image.h" |
6 | 6 |
7 #include "app/gfx/codec/png_codec.h" | 7 #include "app/gfx/codec/png_codec.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
10 #include "base/md5.h" | 10 #include "base/md5.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "skia/ext/platform_device.h" | 12 #include "skia/ext/platform_device.h" |
13 | 13 |
14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
15 #include "base/gfx/gdi_util.h" // EMF support | 15 #include "app/gfx/gdi_util.h" // EMF support |
16 #endif | 16 #endif |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // A simple class which temporarily overrides system settings. | 20 // A simple class which temporarily overrides system settings. |
21 // The bitmap image rendered via the PlayEnhMetaFile() function depends on | 21 // The bitmap image rendered via the PlayEnhMetaFile() function depends on |
22 // some system settings. | 22 // some system settings. |
23 // As a workaround for such dependency, this class saves the system settings | 23 // As a workaround for such dependency, this class saves the system settings |
24 // and changes them. This class also restore the saved settings in its | 24 // and changes them. This class also restore the saved settings in its |
25 // destructor. | 25 // destructor. |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 return success; | 230 return success; |
231 } | 231 } |
232 #else | 232 #else |
233 NOTIMPLEMENTED(); | 233 NOTIMPLEMENTED(); |
234 #endif | 234 #endif |
235 | 235 |
236 return false; | 236 return false; |
237 } | 237 } |
238 | 238 |
239 } // namespace printing | 239 } // namespace printing |
OLD | NEW |