Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.cc

Issue 10083060: [Print Preview]: Added code to support pdf fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Fix nit Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 ConstrainedWebDialogDelegate* delegate = GetConstrainedDelegate(); 314 ConstrainedWebDialogDelegate* delegate = GetConstrainedDelegate();
315 if (!delegate) 315 if (!delegate)
316 return; 316 return;
317 delegate->GetWebDialogDelegate()->OnDialogClosed(""); 317 delegate->GetWebDialogDelegate()->OnDialogClosed("");
318 delegate->OnDialogCloseFromWebUI(); 318 delegate->OnDialogCloseFromWebUI();
319 } 319 }
320 320
321 void PrintPreviewUI::OnReloadPrintersList() { 321 void PrintPreviewUI::OnReloadPrintersList() {
322 web_ui()->CallJavascriptFunction("reloadPrintersList"); 322 web_ui()->CallJavascriptFunction("reloadPrintersList");
323 } 323 }
324
325 void PrintPreviewUI::OnPrintPreviewScalingDisabled() {
326 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF");
327 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | chrome/common/print_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698