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

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

Issue 7064006: Print Preview: Fixing printer list when no printer is installed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Localizing strings 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
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 29 matching lines...) Expand all
40 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_FAILED)); 40 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_FAILED));
41 localized_strings->SetString(std::string("initiatorTabClosed"), 41 localized_strings->SetString(std::string("initiatorTabClosed"),
42 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_INITIATOR_TAB_CLOSED)); 42 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_INITIATOR_TAB_CLOSED));
43 localized_strings->SetString(std::string("reopenPage"), 43 localized_strings->SetString(std::string("reopenPage"),
44 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_REOPEN_PAGE)); 44 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_REOPEN_PAGE));
45 45
46 localized_strings->SetString(std::string("printButton"), 46 localized_strings->SetString(std::string("printButton"),
47 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PRINT_BUTTON)); 47 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PRINT_BUTTON));
48 localized_strings->SetString(std::string("cancelButton"), 48 localized_strings->SetString(std::string("cancelButton"),
49 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_CANCEL_BUTTON)); 49 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_CANCEL_BUTTON));
50 localized_strings->SetString(std::string("printing"),
51 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PRINTING));
50 52
51 localized_strings->SetString(std::string("destinationLabel"), 53 localized_strings->SetString(std::string("destinationLabel"),
52 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_DESTINATION_LABEL)); 54 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_DESTINATION_LABEL));
53 localized_strings->SetString(std::string("copiesLabel"), 55 localized_strings->SetString(std::string("copiesLabel"),
54 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_COPIES_LABEL)); 56 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_COPIES_LABEL));
55 localized_strings->SetString(std::string("examplePageRangeText"), 57 localized_strings->SetString(std::string("examplePageRangeText"),
56 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_EXAMPLE_PAGE_RANGE_TEXT)); 58 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_EXAMPLE_PAGE_RANGE_TEXT));
57 localized_strings->SetString(std::string("invalidNumberOfCopies"), 59 localized_strings->SetString(std::string("invalidNumberOfCopies"),
58 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_INVALID_NUMBER_OF_COPIES)); 60 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_INVALID_NUMBER_OF_COPIES));
59 localized_strings->SetString(std::string("layoutLabel"), 61 localized_strings->SetString(std::string("layoutLabel"),
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 173 }
172 174
173 std::string PrintPreviewUIHTMLSource::GetMimeType( 175 std::string PrintPreviewUIHTMLSource::GetMimeType(
174 const std::string& path) const { 176 const std::string& path) const {
175 // Print Preview Index page. 177 // Print Preview Index page.
176 if (path.empty()) 178 if (path.empty())
177 return "text/html"; 179 return "text/html";
178 // Print Preview data. 180 // Print Preview data.
179 return "application/pdf"; 181 return "application/pdf";
180 } 182 }
OLDNEW
« chrome/browser/resources/print_preview.js ('K') | « chrome/browser/resources/print_preview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698