| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/print_preview_handler.h" | 5 #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h" |
| 6 | 6 |
| 7 #include <ctype.h> | 7 #include <ctype.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "content/public/browser/web_contents.h" | 50 #include "content/public/browser/web_contents.h" |
| 51 #include "content/public/browser/web_contents_view.h" | 51 #include "content/public/browser/web_contents_view.h" |
| 52 #include "content/public/browser/web_contents_delegate.h" | 52 #include "content/public/browser/web_contents_delegate.h" |
| 53 #include "content/public/browser/web_ui.h" | 53 #include "content/public/browser/web_ui.h" |
| 54 #include "printing/backend/print_backend.h" | 54 #include "printing/backend/print_backend.h" |
| 55 #include "printing/metafile.h" | 55 #include "printing/metafile.h" |
| 56 #include "printing/metafile_impl.h" | 56 #include "printing/metafile_impl.h" |
| 57 #include "printing/page_range.h" | 57 #include "printing/page_range.h" |
| 58 #include "printing/page_size_margins.h" | 58 #include "printing/page_size_margins.h" |
| 59 #include "printing/print_settings.h" | 59 #include "printing/print_settings.h" |
| 60 #include "unicode/ulocdata.h" | 60 #include "third_party/icu/public/i18n/unicode/ulocdata.h" |
| 61 | 61 |
| 62 #if defined(OS_CHROMEOS) | 62 #if defined(OS_CHROMEOS) |
| 63 // TODO(kinaba): provide more non-intrusive way for handling local/remote | 63 // TODO(kinaba): provide more non-intrusive way for handling local/remote |
| 64 // distinction and remove these ugly #ifdef's. http://crbug.com/140425 | 64 // distinction and remove these ugly #ifdef's. http://crbug.com/140425 |
| 65 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" | 65 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 using content::BrowserThread; | 68 using content::BrowserThread; |
| 69 using content::NavigationEntry; | 69 using content::NavigationEntry; |
| 70 using content::OpenURLParams; | 70 using content::OpenURLParams; |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 return; | 938 return; |
| 939 | 939 |
| 940 // We no longer require the initiator tab details. Remove those details | 940 // We no longer require the initiator tab details. Remove those details |
| 941 // associated with the preview dialog to allow the initiator tab to create | 941 // associated with the preview dialog to allow the initiator tab to create |
| 942 // another preview dialog. | 942 // another preview dialog. |
| 943 printing::PrintPreviewDialogController* dialog_controller = | 943 printing::PrintPreviewDialogController* dialog_controller = |
| 944 printing::PrintPreviewDialogController::GetInstance(); | 944 printing::PrintPreviewDialogController::GetInstance(); |
| 945 if (dialog_controller) | 945 if (dialog_controller) |
| 946 dialog_controller->EraseInitiatorTabInfo(preview_web_contents()); | 946 dialog_controller->EraseInitiatorTabInfo(preview_web_contents()); |
| 947 } | 947 } |
| OLD | NEW |