| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 const char kPskDuplexFeature[] = "psk:JobDuplexAllDocumentsContiguously"; | 66 const char kPskDuplexFeature[] = "psk:JobDuplexAllDocumentsContiguously"; |
| 67 const char kPskTwoSided[] = "psk:TwoSided"; | 67 const char kPskTwoSided[] = "psk:TwoSided"; |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 enum UserActionBuckets { | 70 enum UserActionBuckets { |
| 71 PRINT_TO_PRINTER, | 71 PRINT_TO_PRINTER, |
| 72 PRINT_TO_PDF, | 72 PRINT_TO_PDF, |
| 73 CANCEL, | 73 CANCEL, |
| 74 FALLBACK_TO_ADVANCED_SETTINGS_DIALOG, | 74 FALLBACK_TO_ADVANCED_SETTINGS_DIALOG, |
| 75 PREVIEW_FAILED, | 75 PREVIEW_FAILED, |
| 76 PREVIEW_STARTED, |
| 76 INITIATOR_TAB_CRASHED, | 77 INITIATOR_TAB_CRASHED, |
| 77 PREVIEW_STARTED, | |
| 78 USERACTION_BUCKET_BOUNDARY | 78 USERACTION_BUCKET_BOUNDARY |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 enum PrintSettingsBuckets { | 81 enum PrintSettingsBuckets { |
| 82 LANDSCAPE, | 82 LANDSCAPE, |
| 83 PORTRAIT, | 83 PORTRAIT, |
| 84 COLOR, | 84 COLOR, |
| 85 BLACK_AND_WHITE, | 85 BLACK_AND_WHITE, |
| 86 COLLATE, | 86 COLLATE, |
| 87 SIMPLEX, | 87 SIMPLEX, |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 return; | 903 return; |
| 904 | 904 |
| 905 // We no longer require the initiator tab details. Remove those details | 905 // We no longer require the initiator tab details. Remove those details |
| 906 // associated with the preview tab to allow the initiator tab to create | 906 // associated with the preview tab to allow the initiator tab to create |
| 907 // another preview tab. | 907 // another preview tab. |
| 908 printing::PrintPreviewTabController* tab_controller = | 908 printing::PrintPreviewTabController* tab_controller = |
| 909 printing::PrintPreviewTabController::GetInstance(); | 909 printing::PrintPreviewTabController::GetInstance(); |
| 910 if (tab_controller) | 910 if (tab_controller) |
| 911 tab_controller->EraseInitiatorTabInfo(preview_tab()); | 911 tab_controller->EraseInitiatorTabInfo(preview_tab()); |
| 912 } | 912 } |
| OLD | NEW |