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/renderer/render_view.h" | 14 #include "chrome/renderer/render_view.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "printing/native_metafile.h" | 16 #include "printing/native_metafile.h" |
17 #include "webkit/api/public/WebFrame.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
18 #include "webkit/api/public/WebCanvas.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" |
19 #include "webkit/api/public/WebConsoleMessage.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" |
20 | 20 |
21 using WebKit::WebFrame; | 21 using WebKit::WebFrame; |
22 using WebKit::WebCanvas; | 22 using WebKit::WebCanvas; |
23 using WebKit::WebConsoleMessage; | 23 using WebKit::WebConsoleMessage; |
24 using WebKit::WebString; | 24 using WebKit::WebString; |
25 | 25 |
26 // TODO(stuartmorgan): There's a fair amount of code here that is duplicated | 26 // TODO(stuartmorgan): There's a fair amount of code here that is duplicated |
27 // from _win that should instead be shared. Once Linux has a real print settings | 27 // from _win that should instead be shared. Once Linux has a real print settings |
28 // implementation, it's likely that this whole method can just be moved to the | 28 // implementation, it's likely that this whole method can just be moved to the |
29 // cross-platform file, and the slight divergences resolved/ifdef'd. | 29 // cross-platform file, and the slight divergences resolved/ifdef'd. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } else { | 224 } else { |
225 NOTREACHED() << "Browser failed to allocate shared memory"; | 225 NOTREACHED() << "Browser failed to allocate shared memory"; |
226 } | 226 } |
227 } else { | 227 } else { |
228 NOTREACHED() << "Browser allocation request message failed"; | 228 NOTREACHED() << "Browser allocation request message failed"; |
229 } | 229 } |
230 | 230 |
231 Send(new ViewHostMsg_DidPrintPage(routing_id(), page_params)); | 231 Send(new ViewHostMsg_DidPrintPage(routing_id(), page_params)); |
232 } | 232 } |
233 | 233 |
OLD | NEW |