OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/webui/print_preview_handler.h" | 5 #include "chrome/browser/ui/webui/print_preview_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #if !defined(OS_CHROMEOS) | 10 #if !defined(OS_CHROMEOS) |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "content/browser/renderer_host/render_view_host.h" | 39 #include "content/browser/renderer_host/render_view_host.h" |
40 #include "content/browser/tab_contents/tab_contents.h" | 40 #include "content/browser/tab_contents/tab_contents.h" |
41 #include "printing/backend/print_backend.h" | 41 #include "printing/backend/print_backend.h" |
42 #include "printing/metafile.h" | 42 #include "printing/metafile.h" |
43 #include "printing/metafile_impl.h" | 43 #include "printing/metafile_impl.h" |
44 #include "printing/page_range.h" | 44 #include "printing/page_range.h" |
45 #include "printing/print_job_constants.h" | 45 #include "printing/print_job_constants.h" |
46 | 46 |
47 #if defined(USE_CUPS) | 47 #if defined(USE_CUPS) |
48 #include <cups/cups.h> | 48 #include <cups/cups.h> |
| 49 #include <cups/ppd.h> |
49 | 50 |
50 #include "base/file_util.h" | 51 #include "base/file_util.h" |
51 #endif | 52 #endif |
52 | 53 |
53 namespace { | 54 namespace { |
54 | 55 |
55 const char kDisableColorOption[] = "disableColorOption"; | 56 const char kDisableColorOption[] = "disableColorOption"; |
56 const char kSetColorAsDefault[] = "setColorAsDefault"; | 57 const char kSetColorAsDefault[] = "setColorAsDefault"; |
57 const char kSetDuplexAsDefault[] = "setDuplexAsDefault"; | 58 const char kSetDuplexAsDefault[] = "setDuplexAsDefault"; |
58 | 59 |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 return; | 887 return; |
887 | 888 |
888 // We no longer require the initiator tab details. Remove those details | 889 // We no longer require the initiator tab details. Remove those details |
889 // associated with the preview tab to allow the initiator tab to create | 890 // associated with the preview tab to allow the initiator tab to create |
890 // another preview tab. | 891 // another preview tab. |
891 printing::PrintPreviewTabController* tab_controller = | 892 printing::PrintPreviewTabController* tab_controller = |
892 printing::PrintPreviewTabController::GetInstance(); | 893 printing::PrintPreviewTabController::GetInstance(); |
893 if (tab_controller) | 894 if (tab_controller) |
894 tab_controller->EraseInitiatorTabInfo(preview_tab()); | 895 tab_controller->EraseInitiatorTabInfo(preview_tab()); |
895 } | 896 } |
OLD | NEW |