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

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

Issue 568973002: Print Preview Advanced settings tweaks: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/advanced_settings/advanced_settings_item.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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 source->AddLocalizedString("couldNotPrint", 330 source->AddLocalizedString("couldNotPrint",
331 IDS_PRINT_PREVIEW_COULD_NOT_PRINT); 331 IDS_PRINT_PREVIEW_COULD_NOT_PRINT);
332 source->AddLocalizedString("registerPromoButtonText", 332 source->AddLocalizedString("registerPromoButtonText",
333 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT); 333 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT);
334 source->AddLocalizedString( 334 source->AddLocalizedString(
335 "advancedSettingsSearchBoxPlaceholder", 335 "advancedSettingsSearchBoxPlaceholder",
336 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER); 336 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER);
337 source->AddLocalizedString("advancedSettingsDialogTitle", 337 source->AddLocalizedString("advancedSettingsDialogTitle",
338 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE); 338 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE);
339 source->AddLocalizedString( 339 source->AddLocalizedString(
340 "noAdvancedSettingsMatchSearchHint",
341 IDS_PRINT_PREVIEW_NO_ADVANCED_SETTINGS_MATCH_SEARCH_HINT);
342 source->AddLocalizedString(
340 "advancedSettingsDialogConfirm", 343 "advancedSettingsDialogConfirm",
341 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM); 344 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM);
342 source->AddLocalizedString("cancel", IDS_CANCEL); 345 source->AddLocalizedString("cancel", IDS_CANCEL);
343 source->AddLocalizedString("advancedOptionsLabel", 346 source->AddLocalizedString("advancedOptionsLabel",
344 IDS_PRINT_PREVIEW_ADVANCED_OPTIONS_LABEL); 347 IDS_PRINT_PREVIEW_ADVANCED_OPTIONS_LABEL);
345 source->AddLocalizedString("showAdvancedOptions", 348 source->AddLocalizedString("showAdvancedOptions",
346 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS); 349 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS);
347 350
348 source->SetJsonPath("strings.js"); 351 source->SetJsonPath("strings.js");
349 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); 352 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS);
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 } 638 }
636 639
637 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 640 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
638 handler_->FileSelected(path, 0, NULL); 641 handler_->FileSelected(path, 0, NULL);
639 } 642 }
640 643
641 void PrintPreviewUI::SetPdfSavedClosureForTesting( 644 void PrintPreviewUI::SetPdfSavedClosureForTesting(
642 const base::Closure& closure) { 645 const base::Closure& closure) {
643 handler_->SetPdfSavedClosureForTesting(closure); 646 handler_->SetPdfSavedClosureForTesting(closure);
644 } 647 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings_item.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698