OLD | NEW |
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.h" | 5 #include "chrome/browser/ui/webui/print_preview_ui.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 void PrintPreviewUI::OnTabDestroyed() { | 214 void PrintPreviewUI::OnTabDestroyed() { |
215 handler_->OnTabDestroyed(); | 215 handler_->OnTabDestroyed(); |
216 } | 216 } |
217 | 217 |
218 void PrintPreviewUI::OnFileSelectionCancelled() { | 218 void PrintPreviewUI::OnFileSelectionCancelled() { |
219 CallJavascriptFunction("fileSelectionCancelled"); | 219 CallJavascriptFunction("fileSelectionCancelled"); |
220 } | 220 } |
221 | 221 |
222 void PrintPreviewUI::OnPrintPreviewFailed() { | 222 void PrintPreviewUI::OnPrintPreviewFailed() { |
| 223 handler_->OnPrintPreviewFailed(); |
223 CallJavascriptFunction("printPreviewFailed"); | 224 CallJavascriptFunction("printPreviewFailed"); |
224 } | 225 } |
225 | 226 |
226 PrintPreviewDataService* PrintPreviewUI::print_preview_data_service() { | 227 PrintPreviewDataService* PrintPreviewUI::print_preview_data_service() { |
227 return PrintPreviewDataService::GetInstance(); | 228 return PrintPreviewDataService::GetInstance(); |
228 } | 229 } |
OLD | NEW |