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

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

Issue 146963004: Exclude print_preview resources for platforms that don't use it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/id_map.h" 9 #include "base/id_map.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 IDS_PRINT_PREVIEW_GOOGLE_CLOUD_PRINT_TITLE); 156 IDS_PRINT_PREVIEW_GOOGLE_CLOUD_PRINT_TITLE);
157 #else 157 #else
158 source->AddLocalizedString("title", IDS_PRINT_PREVIEW_TITLE); 158 source->AddLocalizedString("title", IDS_PRINT_PREVIEW_TITLE);
159 #endif 159 #endif
160 source->AddLocalizedString("loading", IDS_PRINT_PREVIEW_LOADING); 160 source->AddLocalizedString("loading", IDS_PRINT_PREVIEW_LOADING);
161 source->AddLocalizedString("noPlugin", IDS_PRINT_PREVIEW_NO_PLUGIN); 161 source->AddLocalizedString("noPlugin", IDS_PRINT_PREVIEW_NO_PLUGIN);
162 source->AddLocalizedString("launchNativeDialog", 162 source->AddLocalizedString("launchNativeDialog",
163 IDS_PRINT_PREVIEW_NATIVE_DIALOG); 163 IDS_PRINT_PREVIEW_NATIVE_DIALOG);
164 source->AddLocalizedString("previewFailed", IDS_PRINT_PREVIEW_FAILED); 164 source->AddLocalizedString("previewFailed", IDS_PRINT_PREVIEW_FAILED);
165 source->AddLocalizedString("invalidPrinterSettings", 165 source->AddLocalizedString("invalidPrinterSettings",
166 IDS_PRINT_PREVIEW_INVALID_PRINTER_SETTINGS); 166 IDS_PRINT_INVALID_PRINTER_SETTINGS);
167 source->AddLocalizedString("printButton", IDS_PRINT_PREVIEW_PRINT_BUTTON); 167 source->AddLocalizedString("printButton", IDS_PRINT_PREVIEW_PRINT_BUTTON);
168 source->AddLocalizedString("saveButton", IDS_PRINT_PREVIEW_SAVE_BUTTON); 168 source->AddLocalizedString("saveButton", IDS_PRINT_PREVIEW_SAVE_BUTTON);
169 source->AddLocalizedString("cancelButton", IDS_PRINT_PREVIEW_CANCEL_BUTTON); 169 source->AddLocalizedString("cancelButton", IDS_PRINT_PREVIEW_CANCEL_BUTTON);
170 source->AddLocalizedString("printing", IDS_PRINT_PREVIEW_PRINTING); 170 source->AddLocalizedString("printing", IDS_PRINT_PREVIEW_PRINTING);
171 source->AddLocalizedString("printingToPDFInProgress", 171 source->AddLocalizedString("printingToPDFInProgress",
172 IDS_PRINT_PREVIEW_PRINTING_TO_PDF_IN_PROGRESS); 172 IDS_PRINT_PREVIEW_PRINTING_TO_PDF_IN_PROGRESS);
173 #if defined(OS_MACOSX) 173 #if defined(OS_MACOSX)
174 source->AddLocalizedString("openingPDFInPreview", 174 source->AddLocalizedString("openingPDFInPreview",
175 IDS_PRINT_PREVIEW_OPENING_PDF_IN_PREVIEW); 175 IDS_PRINT_PREVIEW_OPENING_PDF_IN_PREVIEW);
176 #endif 176 #endif
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 } 597 }
598 598
599 void PrintPreviewUI::OnPrintPreviewScalingDisabled() { 599 void PrintPreviewUI::OnPrintPreviewScalingDisabled() {
600 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); 600 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF");
601 } 601 }
602 602
603 // static 603 // static
604 void PrintPreviewUI::SetDelegateForTesting(TestingDelegate* delegate) { 604 void PrintPreviewUI::SetDelegateForTesting(TestingDelegate* delegate) {
605 g_testing_delegate = delegate; 605 g_testing_delegate = delegate;
606 } 606 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698