| OLD | NEW |
| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 source->AddLocalizedString("noMargins", IDS_PRINT_PREVIEW_NO_MARGINS); | 257 source->AddLocalizedString("noMargins", IDS_PRINT_PREVIEW_NO_MARGINS); |
| 258 source->AddLocalizedString("customMargins", IDS_PRINT_PREVIEW_CUSTOM_MARGINS); | 258 source->AddLocalizedString("customMargins", IDS_PRINT_PREVIEW_CUSTOM_MARGINS); |
| 259 source->AddLocalizedString("minimumMargins", | 259 source->AddLocalizedString("minimumMargins", |
| 260 IDS_PRINT_PREVIEW_MINIMUM_MARGINS); | 260 IDS_PRINT_PREVIEW_MINIMUM_MARGINS); |
| 261 source->AddLocalizedString("top", IDS_PRINT_PREVIEW_TOP_MARGIN_LABEL); | 261 source->AddLocalizedString("top", IDS_PRINT_PREVIEW_TOP_MARGIN_LABEL); |
| 262 source->AddLocalizedString("bottom", IDS_PRINT_PREVIEW_BOTTOM_MARGIN_LABEL); | 262 source->AddLocalizedString("bottom", IDS_PRINT_PREVIEW_BOTTOM_MARGIN_LABEL); |
| 263 source->AddLocalizedString("left", IDS_PRINT_PREVIEW_LEFT_MARGIN_LABEL); | 263 source->AddLocalizedString("left", IDS_PRINT_PREVIEW_LEFT_MARGIN_LABEL); |
| 264 source->AddLocalizedString("right", IDS_PRINT_PREVIEW_RIGHT_MARGIN_LABEL); | 264 source->AddLocalizedString("right", IDS_PRINT_PREVIEW_RIGHT_MARGIN_LABEL); |
| 265 source->AddLocalizedString("mediaSizeLabel", | 265 source->AddLocalizedString("mediaSizeLabel", |
| 266 IDS_PRINT_PREVIEW_MEDIA_SIZE_LABEL); | 266 IDS_PRINT_PREVIEW_MEDIA_SIZE_LABEL); |
| 267 source->AddLocalizedString("dpiLabel", IDS_PRINT_PREVIEW_DPI_LABEL); |
| 268 source->AddLocalizedString("dpiItemLabel", IDS_PRINT_PREVIEW_DPI_ITEM_LABEL); |
| 267 source->AddLocalizedString("destinationSearchTitle", | 269 source->AddLocalizedString("destinationSearchTitle", |
| 268 IDS_PRINT_PREVIEW_DESTINATION_SEARCH_TITLE); | 270 IDS_PRINT_PREVIEW_DESTINATION_SEARCH_TITLE); |
| 269 source->AddLocalizedString("accountSelectTitle", | 271 source->AddLocalizedString("accountSelectTitle", |
| 270 IDS_PRINT_PREVIEW_ACCOUNT_SELECT_TITLE); | 272 IDS_PRINT_PREVIEW_ACCOUNT_SELECT_TITLE); |
| 271 source->AddLocalizedString("addAccountTitle", | 273 source->AddLocalizedString("addAccountTitle", |
| 272 IDS_PRINT_PREVIEW_ADD_ACCOUNT_TITLE); | 274 IDS_PRINT_PREVIEW_ADD_ACCOUNT_TITLE); |
| 273 source->AddLocalizedString("cloudPrintPromotion", | 275 source->AddLocalizedString("cloudPrintPromotion", |
| 274 IDS_PRINT_PREVIEW_CLOUD_PRINT_PROMOTION); | 276 IDS_PRINT_PREVIEW_CLOUD_PRINT_PROMOTION); |
| 275 source->AddLocalizedString("searchBoxPlaceholder", | 277 source->AddLocalizedString("searchBoxPlaceholder", |
| 276 IDS_PRINT_PREVIEW_SEARCH_BOX_PLACEHOLDER); | 278 IDS_PRINT_PREVIEW_SEARCH_BOX_PLACEHOLDER); |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 } | 637 } |
| 636 | 638 |
| 637 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { | 639 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { |
| 638 handler_->FileSelected(path, 0, NULL); | 640 handler_->FileSelected(path, 0, NULL); |
| 639 } | 641 } |
| 640 | 642 |
| 641 void PrintPreviewUI::SetPdfSavedClosureForTesting( | 643 void PrintPreviewUI::SetPdfSavedClosureForTesting( |
| 642 const base::Closure& closure) { | 644 const base::Closure& closure) { |
| 643 handler_->SetPdfSavedClosureForTesting(closure); | 645 handler_->SetPdfSavedClosureForTesting(closure); |
| 644 } | 646 } |
| OLD | NEW |