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

Side by Side Diff: chrome/browser/ui/webui/print_preview_ui_html_source.cc

Issue 7065007: Print Preview: Changing tab title and invalid page range error message (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 years, 7 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.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ui_html_source.h" 5 #include "chrome/browser/ui/webui/print_preview_ui_html_source.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 localized_strings->SetString(std::string("optionPortrait"), 71 localized_strings->SetString(std::string("optionPortrait"),
72 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_OPTION_PORTRAIT)); 72 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_OPTION_PORTRAIT));
73 localized_strings->SetString(std::string("optionTwoSided"), 73 localized_strings->SetString(std::string("optionTwoSided"),
74 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_OPTION_TWO_SIDED)); 74 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_OPTION_TWO_SIDED));
75 localized_strings->SetString(std::string("pagesLabel"), 75 localized_strings->SetString(std::string("pagesLabel"),
76 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PAGES_LABEL)); 76 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PAGES_LABEL));
77 localized_strings->SetString(std::string("pageRangeTextBox"), 77 localized_strings->SetString(std::string("pageRangeTextBox"),
78 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PAGE_RANGE_TEXT)); 78 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PAGE_RANGE_TEXT));
79 localized_strings->SetString(std::string("pageRangeRadio"), 79 localized_strings->SetString(std::string("pageRangeRadio"),
80 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PAGE_RANGE_RADIO)); 80 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PAGE_RANGE_RADIO));
81 localized_strings->SetString(std::string("invalidPageRange"),
82 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_INVALID_PAGE_RANGE));
83 localized_strings->SetString(std::string("printToPDF"), 81 localized_strings->SetString(std::string("printToPDF"),
84 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PRINT_TO_PDF)); 82 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PRINT_TO_PDF));
85 localized_strings->SetString(std::string("printPreviewTitleFormat"), 83 localized_strings->SetString(std::string("printPreviewTitleFormat"),
86 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_TITLE_FORMAT)); 84 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_TITLE_FORMAT));
87 localized_strings->SetString(std::string("printPreviewSummaryFormatShort"), 85 localized_strings->SetString(std::string("printPreviewSummaryFormatShort"),
88 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_SUMMARY_FORMAT_SHORT)); 86 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_SUMMARY_FORMAT_SHORT));
89 localized_strings->SetString(std::string("printPreviewSummaryFormatLong"), 87 localized_strings->SetString(std::string("printPreviewSummaryFormatLong"),
90 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_SUMMARY_FORMAT_LONG)); 88 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_SUMMARY_FORMAT_LONG));
91 localized_strings->SetString(std::string("printPreviewSheetsLabelSingular"), 89 localized_strings->SetString(std::string("printPreviewSheetsLabelSingular"),
92 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_SHEETS_LABEL_SINGULAR)); 90 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_SHEETS_LABEL_SINGULAR));
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 169 }
172 170
173 std::string PrintPreviewUIHTMLSource::GetMimeType( 171 std::string PrintPreviewUIHTMLSource::GetMimeType(
174 const std::string& path) const { 172 const std::string& path) const {
175 // Print Preview Index page. 173 // Print Preview Index page.
176 if (path.empty()) 174 if (path.empty())
177 return "text/html"; 175 return "text/html";
178 // Print Preview data. 176 // Print Preview data.
179 return "application/pdf"; 177 return "application/pdf";
180 } 178 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698