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" | |
13 #include "chrome/common/render_messages.h" | 12 #include "chrome/common/render_messages.h" |
14 #include "chrome/common/render_messages_params.h" | 13 #include "chrome/common/render_messages_params.h" |
15 #include "chrome/renderer/render_view.h" | 14 #include "chrome/renderer/render_view.h" |
16 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
17 #include "printing/native_metafile.h" | 16 #include "printing/native_metafile.h" |
18 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
19 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" |
20 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
21 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h" |
22 | 21 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } else { | 97 } else { |
99 NOTREACHED() << "Browser failed to allocate shared memory"; | 98 NOTREACHED() << "Browser failed to allocate shared memory"; |
100 } | 99 } |
101 } else { | 100 } else { |
102 NOTREACHED() << "Browser allocation request message failed"; | 101 NOTREACHED() << "Browser allocation request message failed"; |
103 } | 102 } |
104 | 103 |
105 Send(new ViewHostMsg_DidPrintPage(routing_id(), page_params)); | 104 Send(new ViewHostMsg_DidPrintPage(routing_id(), page_params)); |
106 } | 105 } |
107 | 106 |
OLD | NEW |