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 "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/printing/print_job.h" | 9 #include "chrome/browser/printing/print_job.h" |
9 #include "chrome/browser/printing/print_job_manager.h" | 10 #include "chrome/browser/printing/print_job_manager.h" |
10 #include "chrome/browser/printing/printed_document.h" | 11 #include "chrome/browser/printing/printed_document.h" |
11 #include "chrome/browser/printing/printer_query.h" | 12 #include "chrome/browser/printing/printer_query.h" |
12 #include "chrome/browser/renderer_host/render_view_host.h" | 13 #include "chrome/browser/renderer_host/render_view_host.h" |
13 #include "chrome/browser/tab_contents/navigation_entry.h" | 14 #include "chrome/browser/tab_contents/navigation_entry.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 15 #include "chrome/browser/tab_contents/tab_contents.h" |
15 #include "chrome/common/gfx/emf.h" | 16 #include "chrome/common/gfx/emf.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 #include "chrome/common/render_messages.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 | 20 |
21 using base::TimeDelta; | 21 using base::TimeDelta; |
22 | 22 |
23 namespace printing { | 23 namespace printing { |
24 | 24 |
25 PrintViewManager::PrintViewManager(TabContents& owner) | 25 PrintViewManager::PrintViewManager(TabContents& owner) |
26 : owner_(owner), | 26 : owner_(owner), |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 return false; | 396 return false; |
397 } | 397 } |
398 | 398 |
399 // Settings are already loaded. Go ahead. This will set | 399 // Settings are already loaded. Go ahead. This will set |
400 // print_job_->is_job_pending() to true. | 400 // print_job_->is_job_pending() to true. |
401 print_job_->StartPrinting(); | 401 print_job_->StartPrinting(); |
402 return true; | 402 return true; |
403 } | 403 } |
404 | 404 |
405 } // namespace printing | 405 } // namespace printing |
OLD | NEW |