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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 6321017: Refactor win printing workflow. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper_win.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.h
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 9b89dc31eaf6f0c0bc313202c4e364973876e22c..075db13c626295f51446957d4df8c592bdc9d49f 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -15,9 +15,9 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_WIN)
#include "base/shared_memory.h"
-#endif // defined(OS_MACOSX)
+#endif // defined(OS_MACOSX) || defined(OS_WIN)
namespace gfx {
class Size;
@@ -181,6 +181,14 @@ class PrintWebViewHelper : public WebKit::WebViewClient,
void RenderPage(const gfx::Size& page_size, const gfx::Point& content_origin,
const float& scale_factor, int page_number,
WebKit::WebFrame* frame, printing::NativeMetafile* metafile);
+#elif defined(OS_WIN)
+ void RenderPage(const gfx::Size& page_size, float* scale_factor,
+ int page_number, WebKit::WebFrame* frame,
+ scoped_ptr<printing::NativeMetafile>* metafile,
+ bool supports_alpha_blend);
+#endif
+
+#if defined(OS_MACOSX) || defined(OS_WIN)
bool CopyMetafileDataToSharedMem(printing::NativeMetafile* metafile,
base::SharedMemoryHandle* shared_mem_handle);
#endif
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698