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

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

Issue 6361009: Rename |print_params| to |preview_params| in CreatePreviewDocument() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 11 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 | « no previous file | chrome/renderer/print_web_view_helper.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 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 bool use_browser_overlays); 169 bool use_browser_overlays);
170 170
171 // Render the frame for printing. 171 // Render the frame for printing.
172 void RenderPagesForPrint(WebKit::WebFrame* frame, 172 void RenderPagesForPrint(WebKit::WebFrame* frame,
173 WebKit::WebNode* node); 173 WebKit::WebNode* node);
174 174
175 // Render the frame for preview. 175 // Render the frame for preview.
176 void RenderPagesForPreview(WebKit::WebFrame* frame); 176 void RenderPagesForPreview(WebKit::WebFrame* frame);
177 void CreatePreviewDocument(const ViewMsg_PrintPages_Params& params, 177 void CreatePreviewDocument(const ViewMsg_PrintPages_Params& params,
178 WebKit::WebFrame* frame, 178 WebKit::WebFrame* frame,
179 ViewHostMsg_DidPreviewDocument_Params* print_params); 179 ViewHostMsg_DidPreviewDocument_Params* preview_params);
180 #if defined(OS_MACOSX) 180 #if defined(OS_MACOSX)
181 void RenderPage(const gfx::Size& page_size, const gfx::Point& content_origin, 181 void RenderPage(const gfx::Size& page_size, const gfx::Point& content_origin,
182 const float& scale_factor, int page_number, 182 const float& scale_factor, int page_number,
183 WebKit::WebFrame* frame, printing::NativeMetafile* metafile); 183 WebKit::WebFrame* frame, printing::NativeMetafile* metafile);
184 #elif defined(OS_WIN) 184 #elif defined(OS_WIN)
185 void RenderPage(const gfx::Size& page_size, float* scale_factor, 185 void RenderPage(const gfx::Size& page_size, float* scale_factor,
186 int page_number, WebKit::WebFrame* frame, 186 int page_number, WebKit::WebFrame* frame,
187 scoped_ptr<printing::NativeMetafile>* metafile, 187 scoped_ptr<printing::NativeMetafile>* metafile,
188 bool supports_alpha_blend); 188 bool supports_alpha_blend);
189 #endif 189 #endif
190 190
191 #if defined(OS_MACOSX) || defined(OS_WIN) 191 #if defined(OS_MACOSX) || defined(OS_WIN)
192 bool CopyMetafileDataToSharedMem(printing::NativeMetafile* metafile, 192 bool CopyMetafileDataToSharedMem(printing::NativeMetafile* metafile,
193 base::SharedMemoryHandle* shared_mem_handle); 193 base::SharedMemoryHandle* shared_mem_handle);
194 #endif 194 #endif
195 195
196 RenderView* render_view_; 196 RenderView* render_view_;
197 WebKit::WebView* print_web_view_; 197 WebKit::WebView* print_web_view_;
198 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; 198 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_;
199 base::Time last_cancelled_script_print_; 199 base::Time last_cancelled_script_print_;
200 int user_cancelled_scripted_print_count_; 200 int user_cancelled_scripted_print_count_;
201 bool is_preview_; 201 bool is_preview_;
202 202
203 private: 203 private:
204 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 204 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
205 }; 205 };
206 206
207 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 207 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698