| 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_ui.h" | 5 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 11 #include "base/memory/ref_counted_memory.h" | 11 #include "base/memory/ref_counted_memory.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/string_split.h" | |
| 14 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
| 20 #include "chrome/browser/printing/background_printing_manager.h" | 20 #include "chrome/browser/printing/background_printing_manager.h" |
| 21 #include "chrome/browser/printing/print_preview_data_service.h" | 21 #include "chrome/browser/printing/print_preview_data_service.h" |
| 22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
| 23 #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h" | 23 #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h" |
| 24 #include "chrome/browser/ui/webui/theme_source.h" | 24 #include "chrome/browser/ui/webui/theme_source.h" |
| 25 #include "chrome/common/print_messages.h" | 25 #include "chrome/common/print_messages.h" |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 delegate->OnDialogCloseFromWebUI(); | 575 delegate->OnDialogCloseFromWebUI(); |
| 576 } | 576 } |
| 577 | 577 |
| 578 void PrintPreviewUI::OnReloadPrintersList() { | 578 void PrintPreviewUI::OnReloadPrintersList() { |
| 579 web_ui()->CallJavascriptFunction("reloadPrintersList"); | 579 web_ui()->CallJavascriptFunction("reloadPrintersList"); |
| 580 } | 580 } |
| 581 | 581 |
| 582 void PrintPreviewUI::OnPrintPreviewScalingDisabled() { | 582 void PrintPreviewUI::OnPrintPreviewScalingDisabled() { |
| 583 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); | 583 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); |
| 584 } | 584 } |
| OLD | NEW |