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

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

Issue 979303002: Update UI for extension destinations in print preview destination list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 9 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 "noDestsPromoAddPrinterButtonLabel", 317 "noDestsPromoAddPrinterButtonLabel",
318 IDS_PRINT_PREVIEW_NO_DESTS_PROMO_ADD_PRINTER_BUTTON_LABEL); 318 IDS_PRINT_PREVIEW_NO_DESTS_PROMO_ADD_PRINTER_BUTTON_LABEL);
319 source->AddLocalizedString( 319 source->AddLocalizedString(
320 "noDestsPromoNotNowButtonLabel", 320 "noDestsPromoNotNowButtonLabel",
321 IDS_PRINT_PREVIEW_NO_DESTS_PROMO_NOT_NOW_BUTTON_LABEL); 321 IDS_PRINT_PREVIEW_NO_DESTS_PROMO_NOT_NOW_BUTTON_LABEL);
322 source->AddLocalizedString("couldNotPrint", 322 source->AddLocalizedString("couldNotPrint",
323 IDS_PRINT_PREVIEW_COULD_NOT_PRINT); 323 IDS_PRINT_PREVIEW_COULD_NOT_PRINT);
324 source->AddLocalizedString("registerPromoButtonText", 324 source->AddLocalizedString("registerPromoButtonText",
325 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT); 325 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT);
326 source->AddLocalizedString( 326 source->AddLocalizedString(
327 "extensionDestinationIconTooltip",
328 IDS_PRINT_PREVIEW_EXTENSION_DESTINATION_ICON_TOOLTIP);
329 source->AddLocalizedString(
327 "advancedSettingsSearchBoxPlaceholder", 330 "advancedSettingsSearchBoxPlaceholder",
328 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER); 331 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER);
329 source->AddLocalizedString("advancedSettingsDialogTitle", 332 source->AddLocalizedString("advancedSettingsDialogTitle",
330 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE); 333 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE);
331 source->AddLocalizedString( 334 source->AddLocalizedString(
332 "noAdvancedSettingsMatchSearchHint", 335 "noAdvancedSettingsMatchSearchHint",
333 IDS_PRINT_PREVIEW_NO_ADVANCED_SETTINGS_MATCH_SEARCH_HINT); 336 IDS_PRINT_PREVIEW_NO_ADVANCED_SETTINGS_MATCH_SEARCH_HINT);
334 source->AddLocalizedString( 337 source->AddLocalizedString(
335 "advancedSettingsDialogConfirm", 338 "advancedSettingsDialogConfirm",
336 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM); 339 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM);
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 } 645 }
643 646
644 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 647 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
645 handler_->FileSelected(path, 0, NULL); 648 handler_->FileSelected(path, 0, NULL);
646 } 649 }
647 650
648 void PrintPreviewUI::SetPdfSavedClosureForTesting( 651 void PrintPreviewUI::SetPdfSavedClosureForTesting(
649 const base::Closure& closure) { 652 const base::Closure& closure) {
650 handler_->SetPdfSavedClosureForTesting(closure); 653 handler_->SetPdfSavedClosureForTesting(closure);
651 } 654 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698