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

Side by Side Diff: chrome/renderer/print_web_view_helper.cc

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
« no previous file with comments | « chrome/renderer/print_web_view_helper.h ('k') | chrome/renderer/print_web_view_helper_linux.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) 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 #include "app/gfx/codec/jpeg_codec.h" 7 #include "app/gfx/codec/jpeg_codec.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "chrome/renderer/render_view.h" 11 #include "chrome/renderer/render_view.h"
12 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
13 #include "printing/units.h" 13 #include "printing/units.h"
14 #include "webkit/api/public/WebFrame.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
15 #include "webkit/api/public/WebRect.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
16 #include "webkit/api/public/WebScreenInfo.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h"
17 #include "webkit/api/public/WebSize.h" 17 #include "third_party/WebKit/WebKit/chromium/public/WebSize.h"
18 #include "webkit/api/public/WebURLRequest.h" 18 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h"
19 #include "webkit/glue/webkit_glue.h" 19 #include "webkit/glue/webkit_glue.h"
20 20
21 using WebKit::WebFrame; 21 using WebKit::WebFrame;
22 using WebKit::WebRect; 22 using WebKit::WebRect;
23 using WebKit::WebScreenInfo; 23 using WebKit::WebScreenInfo;
24 using WebKit::WebString; 24 using WebKit::WebString;
25 using WebKit::WebURLRequest; 25 using WebKit::WebURLRequest;
26 using WebKit::WebView; 26 using WebKit::WebView;
27 27
28 PrepareFrameAndViewForPrint::PrepareFrameAndViewForPrint( 28 PrepareFrameAndViewForPrint::PrepareFrameAndViewForPrint(
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 157 }
158 158
159 int32 PrintWebViewHelper::routing_id() { 159 int32 PrintWebViewHelper::routing_id() {
160 return render_view_->routing_id(); 160 return render_view_->routing_id();
161 } 161 }
162 162
163 void PrintWebViewHelper::didStopLoading() { 163 void PrintWebViewHelper::didStopLoading() {
164 DCHECK(print_pages_params_.get() != NULL); 164 DCHECK(print_pages_params_.get() != NULL);
165 PrintPages(*print_pages_params_.get(), print_web_view_->mainFrame()); 165 PrintPages(*print_pages_params_.get(), print_web_view_->mainFrame());
166 } 166 }
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper.h ('k') | chrome/renderer/print_web_view_helper_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698