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/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 ConstrainedWebDialogDelegate* delegate = GetConstrainedDelegate(); | 324 ConstrainedWebDialogDelegate* delegate = GetConstrainedDelegate(); |
325 if (!delegate) | 325 if (!delegate) |
326 return; | 326 return; |
327 delegate->GetWebDialogDelegate()->OnDialogClosed(""); | 327 delegate->GetWebDialogDelegate()->OnDialogClosed(""); |
328 delegate->OnDialogCloseFromWebUI(); | 328 delegate->OnDialogCloseFromWebUI(); |
329 } | 329 } |
330 | 330 |
331 void PrintPreviewUI::OnReloadPrintersList() { | 331 void PrintPreviewUI::OnReloadPrintersList() { |
332 web_ui()->CallJavascriptFunction("reloadPrintersList"); | 332 web_ui()->CallJavascriptFunction("reloadPrintersList"); |
333 } | 333 } |
| 334 |
| 335 void PrintPreviewUI::OnPrintPreviewScalingDisabled() { |
| 336 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); |
| 337 } |
OLD | NEW |