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 #include "chrome/browser/local_discovery/pwg_raster_converter.h" | 5 #include "chrome/browser/printing/pwg_raster_converter.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
12 #include "base/files/file.h" | 12 #include "base/files/file.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
19 #include "chrome/common/chrome_utility_messages.h" | 19 #include "chrome/common/chrome_utility_messages.h" |
20 #include "chrome/common/chrome_utility_printing_messages.h" | 20 #include "chrome/common/chrome_utility_printing_messages.h" |
21 #include "chrome/grit/generated_resources.h" | 21 #include "chrome/grit/generated_resources.h" |
22 #include "components/cloud_devices/common/cloud_device_description.h" | 22 #include "components/cloud_devices/common/cloud_device_description.h" |
23 #include "components/cloud_devices/common/printer_description.h" | 23 #include "components/cloud_devices/common/printer_description.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 #include "content/public/browser/child_process_data.h" | 25 #include "content/public/browser/child_process_data.h" |
26 #include "content/public/browser/utility_process_host.h" | 26 #include "content/public/browser/utility_process_host.h" |
27 #include "content/public/browser/utility_process_host_client.h" | 27 #include "content/public/browser/utility_process_host_client.h" |
28 #include "printing/pdf_render_settings.h" | 28 #include "printing/pdf_render_settings.h" |
29 #include "printing/pwg_raster_settings.h" | 29 #include "printing/pwg_raster_settings.h" |
30 #include "printing/units.h" | 30 #include "printing/units.h" |
31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
32 #include "ui/gfx/geometry/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
33 #include "ui/gfx/geometry/size.h" | 33 #include "ui/gfx/geometry/size.h" |
34 | 34 |
35 namespace local_discovery { | 35 namespace printing { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 using content::BrowserThread; | 39 using content::BrowserThread; |
40 | 40 |
41 class FileHandlers { | 41 class FileHandlers { |
42 public: | 42 public: |
43 FileHandlers() {} | 43 FileHandlers() {} |
44 | 44 |
45 ~FileHandlers() { | 45 ~FileHandlers() { |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 result.odd_page_transform = printing::TRANSFORM_FLIP_HORIZONTAL; | 356 result.odd_page_transform = printing::TRANSFORM_FLIP_HORIZONTAL; |
357 } | 357 } |
358 } | 358 } |
359 | 359 |
360 result.rotate_all_pages = raster_capability.value().rotate_all_pages; | 360 result.rotate_all_pages = raster_capability.value().rotate_all_pages; |
361 | 361 |
362 result.reverse_page_order = raster_capability.value().reverse_order_streaming; | 362 result.reverse_page_order = raster_capability.value().reverse_order_streaming; |
363 return result; | 363 return result; |
364 } | 364 } |
365 | 365 |
366 } // namespace local_discovery | 366 } // namespace printing |
OLD | NEW |