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

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

Issue 473553002: Add a button to Print Preivew to open printer's Advanced options dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address cl comments. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/print_preview/settings/advanced_options_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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT); 332 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT);
333 source->AddLocalizedString( 333 source->AddLocalizedString(
334 "advancedSettingsSearchBoxPlaceholder", 334 "advancedSettingsSearchBoxPlaceholder",
335 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER); 335 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER);
336 source->AddLocalizedString("advancedSettingsDialogTitle", 336 source->AddLocalizedString("advancedSettingsDialogTitle",
337 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE); 337 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE);
338 source->AddLocalizedString( 338 source->AddLocalizedString(
339 "advancedSettingsDialogConfirm", 339 "advancedSettingsDialogConfirm",
340 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM); 340 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM);
341 source->AddLocalizedString("cancel", IDS_CANCEL); 341 source->AddLocalizedString("cancel", IDS_CANCEL);
342 source->AddLocalizedString("advancedOptionsLabel",
343 IDS_PRINT_PREVIEW_ADVANCED_OPTIONS_LABEL);
344 source->AddLocalizedString("showAdvancedOptions",
345 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS);
342 346
343 source->SetJsonPath("strings.js"); 347 source->SetJsonPath("strings.js");
344 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); 348 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS);
345 source->AddResourcePath("images/printer.png", 349 source->AddResourcePath("images/printer.png",
346 IDR_PRINT_PREVIEW_IMAGES_PRINTER); 350 IDR_PRINT_PREVIEW_IMAGES_PRINTER);
347 source->AddResourcePath("images/printer_shared.png", 351 source->AddResourcePath("images/printer_shared.png",
348 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); 352 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED);
349 source->AddResourcePath("images/third_party.png", 353 source->AddResourcePath("images/third_party.png",
350 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); 354 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY);
351 source->AddResourcePath("images/third_party_fedex.png", 355 source->AddResourcePath("images/third_party_fedex.png",
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 } 630 }
627 631
628 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 632 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
629 handler_->FileSelected(path, 0, NULL); 633 handler_->FileSelected(path, 0, NULL);
630 } 634 }
631 635
632 void PrintPreviewUI::SetPdfSavedClosureForTesting( 636 void PrintPreviewUI::SetPdfSavedClosureForTesting(
633 const base::Closure& closure) { 637 const base::Closure& closure) {
634 handler_->SetPdfSavedClosureForTesting(closure); 638 handler_->SetPdfSavedClosureForTesting(closure);
635 } 639 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/settings/advanced_options_settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698