Chromium Code Reviews| 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" |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 599 } | 599 } |
| 600 | 600 |
| 601 void PrintPreviewUI::OnReloadPrintersList() { | 601 void PrintPreviewUI::OnReloadPrintersList() { |
| 602 web_ui()->CallJavascriptFunction("reloadPrintersList"); | 602 web_ui()->CallJavascriptFunction("reloadPrintersList"); |
| 603 } | 603 } |
| 604 | 604 |
| 605 void PrintPreviewUI::OnPrintPreviewScalingDisabled() { | 605 void PrintPreviewUI::OnPrintPreviewScalingDisabled() { |
| 606 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); | 606 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); |
| 607 } | 607 } |
| 608 | 608 |
| 609 void PrintPreviewUI::OnPrintPreviewNumCopies(int num_copies) { | |
| 610 // FIXME: Call javascript function? | |
|
Nikhil
2014/07/09 09:36:47
Is this right approach?
Vitaly Buka (NO REVIEWS)
2014/07/10 01:13:04
yes
On 2014/07/09 09:36:47, Nikhil wrote:
| |
| 611 } | |
| 612 | |
| 609 // static | 613 // static |
| 610 void PrintPreviewUI::SetDelegateForTesting(TestingDelegate* delegate) { | 614 void PrintPreviewUI::SetDelegateForTesting(TestingDelegate* delegate) { |
| 611 g_testing_delegate = delegate; | 615 g_testing_delegate = delegate; |
| 612 } | 616 } |
| OLD | NEW |