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_linux.cc

Issue 6713084: Move the rest of the renderer->browser messages that belong in content. Also do a bunch of cleanup: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | chrome/renderer/print_web_view_helper_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/file_descriptor_posix.h" 7 #include "base/file_descriptor_posix.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "chrome/common/render_messages_params.h" 11 #include "content/common/view_messages.h"
12 #include "printing/native_metafile_factory.h" 12 #include "printing/native_metafile_factory.h"
13 #include "printing/native_metafile.h" 13 #include "printing/native_metafile.h"
14 #include "skia/ext/vector_canvas.h" 14 #include "skia/ext/vector_canvas.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
16 #include "ui/gfx/point.h" 16 #include "ui/gfx/point.h"
17 17
18 #if !defined(OS_CHROMEOS) 18 #if !defined(OS_CHROMEOS)
19 #include "base/process_util.h" 19 #include "base/process_util.h"
20 #endif // !defined(OS_CHROMEOS) 20 #endif // !defined(OS_CHROMEOS)
21 21
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 canvas->reset(new skia::VectorCanvas(device)); 230 canvas->reset(new skia::VectorCanvas(device));
231 frame->printPage(params.page_number, canvas->get()); 231 frame->printPage(params.page_number, canvas->get());
232 232
233 // TODO(myhuang): We should handle transformation for paper margins. 233 // TODO(myhuang): We should handle transformation for paper margins.
234 // TODO(myhuang): We should render the header and the footer. 234 // TODO(myhuang): We should render the header and the footer.
235 235
236 // Done printing. Close the device context to retrieve the compiled metafile. 236 // Done printing. Close the device context to retrieve the compiled metafile.
237 if (!metafile->FinishPage()) 237 if (!metafile->FinishPage())
238 NOTREACHED() << "metafile failed"; 238 NOTREACHED() << "metafile failed";
239 } 239 }
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper.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