Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Side by Side Diff: chrome/renderer/print_web_view_helper_mac.mm

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper_linux.cc ('k') | chrome/renderer/print_web_view_helper_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698