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

Unified Diff: chrome/renderer/print_web_view_helper_linux.cc

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | chrome/renderer/print_web_view_helper_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper_linux.cc
===================================================================
--- chrome/renderer/print_web_view_helper_linux.cc (revision 22886)
+++ chrome/renderer/print_web_view_helper_linux.cc (working copy)
@@ -7,8 +7,9 @@
#include "base/logging.h"
#include "chrome/common/render_messages.h"
#include "skia/ext/vector_canvas.h"
-#include "webkit/glue/webframe.h"
+#include "webkit/api/public/WebFrame.h"
+using WebKit::WebFrame;
void PrintWebViewHelper::Print(WebFrame* frame, bool script_initiated) {
// If still not finished with earlier print request simply ignore.
@@ -39,7 +40,7 @@
// Calculate the estimated page count.
PrepareFrameAndViewForPrint prep_frame_view(default_settings,
frame,
- frame->GetView());
+ frame->view());
int expected_pages_count = prep_frame_view.GetExpectedPageCount();
DCHECK(expected_pages_count);
@@ -74,7 +75,7 @@
// each page in printing. We might also need to create a metafile class
// on Linux.
skia::VectorCanvas canvas(size_x, size_y);
- float webkit_shrink = frame->PrintPage(params.page_number, &canvas);
+ float webkit_shrink = frame->printPage(params.page_number, &canvas);
if (shrink <= 0) {
NOTREACHED() << "Printing page " << params.page_number << " failed.";
} else {
Property changes on: chrome\renderer\print_web_view_helper_linux.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | chrome/renderer/print_web_view_helper_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698