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

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

Issue 2441493004: Add copies changes to prepare for scaling (Closed)
Patch Set: Fix final issues Created 4 years, 2 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
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 #include <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 chrome::kCloudPrintNoDestinationsLearnMoreURL); 253 chrome::kCloudPrintNoDestinationsLearnMoreURL);
254 source->AddLocalizedString("pageRangeLimitInstruction", 254 source->AddLocalizedString("pageRangeLimitInstruction",
255 IDS_PRINT_PREVIEW_PAGE_RANGE_LIMIT_INSTRUCTION); 255 IDS_PRINT_PREVIEW_PAGE_RANGE_LIMIT_INSTRUCTION);
256 source->AddLocalizedString( 256 source->AddLocalizedString(
257 "pageRangeLimitInstructionWithValue", 257 "pageRangeLimitInstructionWithValue",
258 IDS_PRINT_PREVIEW_PAGE_RANGE_LIMIT_INSTRUCTION_WITH_VALUE); 258 IDS_PRINT_PREVIEW_PAGE_RANGE_LIMIT_INSTRUCTION_WITH_VALUE);
259 source->AddLocalizedString("pageRangeSyntaxInstruction", 259 source->AddLocalizedString("pageRangeSyntaxInstruction",
260 IDS_PRINT_PREVIEW_PAGE_RANGE_SYNTAX_INSTRUCTION); 260 IDS_PRINT_PREVIEW_PAGE_RANGE_SYNTAX_INSTRUCTION);
261 source->AddLocalizedString("copiesInstruction", 261 source->AddLocalizedString("copiesInstruction",
262 IDS_PRINT_PREVIEW_COPIES_INSTRUCTION); 262 IDS_PRINT_PREVIEW_COPIES_INSTRUCTION);
263 source->AddLocalizedString("incrementTitle",
264 IDS_PRINT_PREVIEW_INCREMENT_TITLE);
265 source->AddLocalizedString("decrementTitle",
266 IDS_PRINT_PREVIEW_DECREMENT_TITLE);
267 source->AddLocalizedString("printPagesLabel", 263 source->AddLocalizedString("printPagesLabel",
268 IDS_PRINT_PREVIEW_PRINT_PAGES_LABEL); 264 IDS_PRINT_PREVIEW_PRINT_PAGES_LABEL);
269 source->AddLocalizedString("optionsLabel", IDS_PRINT_PREVIEW_OPTIONS_LABEL); 265 source->AddLocalizedString("optionsLabel", IDS_PRINT_PREVIEW_OPTIONS_LABEL);
270 source->AddLocalizedString("optionHeaderFooter", 266 source->AddLocalizedString("optionHeaderFooter",
271 IDS_PRINT_PREVIEW_OPTION_HEADER_FOOTER); 267 IDS_PRINT_PREVIEW_OPTION_HEADER_FOOTER);
272 source->AddLocalizedString("optionFitToPage", 268 source->AddLocalizedString("optionFitToPage",
273 IDS_PRINT_PREVIEW_OPTION_FIT_TO_PAGE); 269 IDS_PRINT_PREVIEW_OPTION_FIT_TO_PAGE);
274 source->AddLocalizedString( 270 source->AddLocalizedString(
275 "optionBackgroundColorsAndImages", 271 "optionBackgroundColorsAndImages",
276 IDS_PRINT_PREVIEW_OPTION_BACKGROUND_COLORS_AND_IMAGES); 272 IDS_PRINT_PREVIEW_OPTION_BACKGROUND_COLORS_AND_IMAGES);
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 } 673 }
678 674
679 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 675 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
680 handler_->FileSelected(path, 0, NULL); 676 handler_->FileSelected(path, 0, NULL);
681 } 677 }
682 678
683 void PrintPreviewUI::SetPdfSavedClosureForTesting( 679 void PrintPreviewUI::SetPdfSavedClosureForTesting(
684 const base::Closure& closure) { 680 const base::Closure& closure) {
685 handler_->SetPdfSavedClosureForTesting(closure); 681 handler_->SetPdfSavedClosureForTesting(closure);
686 } 682 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/settings/settings_box.css ('k') | chrome/test/data/webui/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698