OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/renderer/print_web_view_helper.h" | 5 #include "chrome/renderer/print_web_view_helper.h" |
6 | 6 |
7 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
12 #include "base/scoped_cftyperef.h" | 12 #include "base/scoped_cftyperef.h" |
13 #include "chrome/common/render_messages.h" | 13 #include "chrome/common/render_messages.h" |
| 14 #include "chrome/common/render_messages_params.h" |
14 #include "chrome/renderer/render_view.h" | 15 #include "chrome/renderer/render_view.h" |
15 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
16 #include "printing/native_metafile.h" | 17 #include "printing/native_metafile.h" |
17 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
18 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" |
19 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
20 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" |
21 | 22 |
22 using WebKit::WebFrame; | 23 using WebKit::WebFrame; |
23 using WebKit::WebCanvas; | 24 using WebKit::WebCanvas; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } else { | 98 } else { |
98 NOTREACHED() << "Browser failed to allocate shared memory"; | 99 NOTREACHED() << "Browser failed to allocate shared memory"; |
99 } | 100 } |
100 } else { | 101 } else { |
101 NOTREACHED() << "Browser allocation request message failed"; | 102 NOTREACHED() << "Browser allocation request message failed"; |
102 } | 103 } |
103 | 104 |
104 Send(new ViewHostMsg_DidPrintPage(routing_id(), page_params)); | 105 Send(new ViewHostMsg_DidPrintPage(routing_id(), page_params)); |
105 } | 106 } |
106 | 107 |
OLD | NEW |