OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/printing/print_view_manager.h" | 5 #include "chrome/browser/printing/print_view_manager.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/printing/print_job.h" | 10 #include "chrome/browser/printing/print_job.h" |
11 #include "chrome/browser/printing/print_job_manager.h" | 11 #include "chrome/browser/printing/print_job_manager.h" |
12 #include "chrome/browser/printing/printed_document.h" | |
13 #include "chrome/browser/printing/printer_query.h" | 12 #include "chrome/browser/printing/printer_query.h" |
14 #include "chrome/browser/renderer_host/render_view_host.h" | 13 #include "chrome/browser/renderer_host/render_view_host.h" |
15 #include "chrome/browser/tab_contents/navigation_entry.h" | 14 #include "chrome/browser/tab_contents/navigation_entry.h" |
16 #include "chrome/browser/tab_contents/tab_contents.h" | 15 #include "chrome/browser/tab_contents/tab_contents.h" |
17 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_service.h" |
18 #include "chrome/common/render_messages.h" | 17 #include "chrome/common/render_messages.h" |
19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
20 #include "printing/native_metafile.h" | 19 #include "printing/native_metafile.h" |
| 20 #include "printing/printed_document.h" |
21 | 21 |
22 using base::TimeDelta; | 22 using base::TimeDelta; |
23 | 23 |
24 namespace printing { | 24 namespace printing { |
25 | 25 |
26 PrintViewManager::PrintViewManager(TabContents& owner) | 26 PrintViewManager::PrintViewManager(TabContents& owner) |
27 : owner_(owner), | 27 : owner_(owner), |
28 waiting_to_print_(false), | 28 waiting_to_print_(false), |
29 printing_succeeded_(false), | 29 printing_succeeded_(false), |
30 inside_inner_message_loop_(false) { | 30 inside_inner_message_loop_(false) { |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 return false; | 405 return false; |
406 } | 406 } |
407 | 407 |
408 // Settings are already loaded. Go ahead. This will set | 408 // Settings are already loaded. Go ahead. This will set |
409 // print_job_->is_job_pending() to true. | 409 // print_job_->is_job_pending() to true. |
410 print_job_->StartPrinting(); | 410 print_job_->StartPrinting(); |
411 return true; | 411 return true; |
412 } | 412 } |
413 | 413 |
414 } // namespace printing | 414 } // namespace printing |
OLD | NEW |