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 "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/printing/print_job.h" | 8 #include "chrome/browser/printing/print_job.h" |
9 #include "chrome/browser/printing/print_job_manager.h" | 9 #include "chrome/browser/printing/print_job_manager.h" |
10 #include "chrome/browser/printing/printed_document.h" | 10 #include "chrome/browser/printing/printed_document.h" |
11 #include "chrome/browser/printing/printer_query.h" | 11 #include "chrome/browser/printing/printer_query.h" |
12 #include "chrome/browser/renderer_host/render_view_host.h" | 12 #include "chrome/browser/renderer_host/render_view_host.h" |
13 #include "chrome/browser/tab_contents/navigation_entry.h" | 13 #include "chrome/browser/tab_contents/navigation_entry.h" |
14 #include "chrome/browser/tab_contents/web_contents.h" | 14 #include "chrome/browser/tab_contents/web_contents.h" |
15 #include "chrome/common/gfx/emf.h" | 15 #include "chrome/common/gfx/emf.h" |
16 #include "chrome/common/l10n_util.h" | 16 #include "chrome/common/l10n_util.h" |
17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
| 18 #include "chrome/common/render_messages.h" |
18 | 19 |
19 #include "generated_resources.h" | 20 #include "generated_resources.h" |
20 | 21 |
21 using base::TimeDelta; | 22 using base::TimeDelta; |
22 | 23 |
23 namespace printing { | 24 namespace printing { |
24 | 25 |
25 PrintViewManager::PrintViewManager(WebContents& owner) | 26 PrintViewManager::PrintViewManager(WebContents& owner) |
26 : owner_(owner), | 27 : owner_(owner), |
27 waiting_to_print_(false), | 28 waiting_to_print_(false), |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 } | 518 } |
518 | 519 |
519 // Settings are already loaded. Go ahead. This will set | 520 // Settings are already loaded. Go ahead. This will set |
520 // print_job_->is_job_pending() to true. | 521 // print_job_->is_job_pending() to true. |
521 print_job_->StartPrinting(); | 522 print_job_->StartPrinting(); |
522 return true; | 523 return true; |
523 } | 524 } |
524 | 525 |
525 } // namespace printing | 526 } // namespace printing |
526 | 527 |
OLD | NEW |