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

Side by Side Diff: chrome/browser/dom_ui/print_preview_ui.cc

Issue 5574003: Print preview: Display a message when the PDF viewer is missing.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 10 years 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/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview.html » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/print_preview_ui.h" 5 #include "chrome/browser/dom_ui/print_preview_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 13 matching lines...) Expand all
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "grit/theme_resources.h" 25 #include "grit/theme_resources.h"
26 26
27 namespace { 27 namespace {
28 28
29 void SetLocalizedStrings(DictionaryValue* localized_strings) { 29 void SetLocalizedStrings(DictionaryValue* localized_strings) {
30 localized_strings->SetString(std::string("title"), 30 localized_strings->SetString(std::string("title"),
31 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_TITLE)); 31 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_TITLE));
32 localized_strings->SetString(std::string("loading"), 32 localized_strings->SetString(std::string("loading"),
33 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_LOADING)); 33 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_LOADING));
34 localized_strings->SetString(std::string("noPlugin"),
35 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_NO_PLUGIN));
34 localized_strings->SetString(std::string("noPrinter"), 36 localized_strings->SetString(std::string("noPrinter"),
35 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_NO_PRINTER)); 37 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_NO_PRINTER));
36 38
37 localized_strings->SetString(std::string("printButton"), 39 localized_strings->SetString(std::string("printButton"),
38 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PRINT_BUTTON)); 40 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_PRINT_BUTTON));
39 localized_strings->SetString(std::string("cancelButton"), 41 localized_strings->SetString(std::string("cancelButton"),
40 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_CANCEL_BUTTON)); 42 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_CANCEL_BUTTON));
41 43
42 localized_strings->SetString(std::string("optionAllPages"), 44 localized_strings->SetString(std::string("optionAllPages"),
43 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_OPTION_ALL_PAGES)); 45 l10n_util::GetStringUTF8(IDS_PRINT_PREVIEW_OPTION_ALL_PAGES));
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 BrowserThread::PostTask( 140 BrowserThread::PostTask(
139 BrowserThread::IO, FROM_HERE, 141 BrowserThread::IO, FROM_HERE,
140 NewRunnableMethod( 142 NewRunnableMethod(
141 Singleton<ChromeURLDataManager>::get(), 143 Singleton<ChromeURLDataManager>::get(),
142 &ChromeURLDataManager::AddDataSource, 144 &ChromeURLDataManager::AddDataSource,
143 make_scoped_refptr(new PrintPreviewUIHTMLSource()))); 145 make_scoped_refptr(new PrintPreviewUIHTMLSource())));
144 } 146 }
145 147
146 PrintPreviewUI::~PrintPreviewUI() { 148 PrintPreviewUI::~PrintPreviewUI() {
147 } 149 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698