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

Unified Diff: chrome/browser/ui/webui/print_preview_ui.cc

Issue 7721001: PrintPreview: Make ctrl-shift-p start the native print flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/print_preview_ui.cc
diff --git a/chrome/browser/ui/webui/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview_ui.cc
index 7e087e67ba34387e1336c419f1848c64a277fc90..9d18e0040bbae84b21735fb8cd96ae8c2544007c 100644
--- a/chrome/browser/ui/webui/print_preview_ui.cc
+++ b/chrome/browser/ui/webui/print_preview_ui.cc
@@ -146,6 +146,10 @@ void PrintPreviewUI::OnPrintPreviewRequest(int request_id) {
g_print_preview_request_id_map.Get().Set(preview_ui_addr_str_, request_id);
}
+void PrintPreviewUI::OnShowSystemDialog() {
+ CallJavascriptFunction("onSystemDialogLinkClicked");
+}
+
void PrintPreviewUI::OnDidGetPreviewPageCount(
const PrintHostMsg_DidGetPreviewPageCount_Params& params) {
DCHECK_GT(params.page_count, 0);
@@ -219,6 +223,10 @@ void PrintPreviewUI::OnFileSelectionCancelled() {
CallJavascriptFunction("fileSelectionCancelled");
}
+void PrintPreviewUI::OnCancelPendingPreviewRequest() {
+ g_print_preview_request_id_map.Get().Set(preview_ui_addr_str_, -1);
+}
+
void PrintPreviewUI::OnPrintPreviewFailed() {
CallJavascriptFunction("printPreviewFailed");
}

Powered by Google App Engine
This is Rietveld 408576698