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

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

Issue 590643002: Move Print Preview onto newer i18nTemplate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update new invitations code Created 6 years, 3 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
« no previous file with comments | « chrome/browser/resources/print_preview/settings/page_settings.js ('k') | no next file » | 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 #include <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE); 351 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE);
352 source->AddLocalizedString( 352 source->AddLocalizedString(
353 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE); 353 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE);
354 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE); 354 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE);
355 source->AddLocalizedString( 355 source->AddLocalizedString(
356 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT); 356 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT);
357 source->AddLocalizedString( 357 source->AddLocalizedString(
358 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); 358 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT);
359 359
360 source->SetUseJsonJSFormatV2();
360 source->SetJsonPath("strings.js"); 361 source->SetJsonPath("strings.js");
361 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); 362 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS);
362 source->AddResourcePath("images/printer.png", 363 source->AddResourcePath("images/printer.png",
363 IDR_PRINT_PREVIEW_IMAGES_PRINTER); 364 IDR_PRINT_PREVIEW_IMAGES_PRINTER);
364 source->AddResourcePath("images/printer_shared.png", 365 source->AddResourcePath("images/printer_shared.png",
365 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); 366 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED);
366 source->AddResourcePath("images/third_party.png", 367 source->AddResourcePath("images/third_party.png",
367 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); 368 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY);
368 source->AddResourcePath("images/third_party_fedex.png", 369 source->AddResourcePath("images/third_party_fedex.png",
369 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY_FEDEX); 370 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY_FEDEX);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 } 648 }
648 649
649 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 650 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
650 handler_->FileSelected(path, 0, NULL); 651 handler_->FileSelected(path, 0, NULL);
651 } 652 }
652 653
653 void PrintPreviewUI::SetPdfSavedClosureForTesting( 654 void PrintPreviewUI::SetPdfSavedClosureForTesting(
654 const base::Closure& closure) { 655 const base::Closure& closure) {
655 handler_->SetPdfSavedClosureForTesting(closure); 656 handler_->SetPdfSavedClosureForTesting(closure);
656 } 657 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/settings/page_settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698