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

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

Issue 2760753002: [CUPS] Implement the local CUPS printer setup waiting UI. (Closed)
Patch Set: Address skau@'s comment. Rebase Created 3 years, 8 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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS); 374 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS);
375 375
376 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE); 376 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE);
377 source->AddLocalizedString( 377 source->AddLocalizedString(
378 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE); 378 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE);
379 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE); 379 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE);
380 source->AddLocalizedString( 380 source->AddLocalizedString(
381 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT); 381 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT);
382 source->AddLocalizedString( 382 source->AddLocalizedString(
383 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); 383 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT);
384 source->AddLocalizedString("configuringInProgressText",
385 IDS_PRINT_CONFIGURING_IN_PROGRESS_TEXT);
386 source->AddLocalizedString("configuringFailedText",
387 IDS_PRINT_CONFIGURING_FAILED_TEXT);
384 388
385 source->SetJsonPath("strings.js"); 389 source->SetJsonPath("strings.js");
386 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); 390 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS);
387 source->AddResourcePath("pdf_preview.html", 391 source->AddResourcePath("pdf_preview.html",
388 IDR_PRINT_PREVIEW_PDF_PREVIEW_HTML); 392 IDR_PRINT_PREVIEW_PDF_PREVIEW_HTML);
389 source->AddResourcePath("images/printer.png", 393 source->AddResourcePath("images/printer.png",
390 IDR_PRINT_PREVIEW_IMAGES_PRINTER); 394 IDR_PRINT_PREVIEW_IMAGES_PRINTER);
391 source->AddResourcePath("images/printer_shared.png", 395 source->AddResourcePath("images/printer_shared.png",
392 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); 396 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED);
393 source->AddResourcePath("images/business.svg", 397 source->AddResourcePath("images/business.svg",
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 } 693 }
690 694
691 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 695 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
692 handler_->FileSelected(path, 0, NULL); 696 handler_->FileSelected(path, 0, NULL);
693 } 697 }
694 698
695 void PrintPreviewUI::SetPdfSavedClosureForTesting( 699 void PrintPreviewUI::SetPdfSavedClosureForTesting(
696 const base::Closure& closure) { 700 const base::Closure& closure) {
697 handler_->SetPdfSavedClosureForTesting(closure); 701 handler_->SetPdfSavedClosureForTesting(closure);
698 } 702 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698