summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/renderer/print_web_view_helper.cc4
-rw-r--r--chrome/renderer/print_web_view_helper.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index 04e72b4..633acd8 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -139,7 +139,7 @@ void PrintWebViewHelper::PrintPages(const ViewMsg_PrintPages_Params& params,
}
}
}
-
+#ifndef OS_MACOSX
void PrintWebViewHelper::PrintPageAsJPEG(
const ViewMsg_PrintPage_Params& params,
WebFrame* frame,
@@ -174,7 +174,7 @@ void PrintWebViewHelper::PrintPageAsJPEG(
image_data);
DCHECK(encoded);
}
-
+#endif
bool PrintWebViewHelper::Send(IPC::Message* msg) {
return render_view_->Send(msg);
}
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 406c807..0c49884 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -74,7 +74,7 @@ class PrintWebViewHelper : public WebViewDelegate {
// Notification when printing is done - signal teardown
void DidFinishPrinting(bool success);
-
+#ifndef OS_MACOSX
// Prints the page listed in |params| as a JPEG image. The width and height of
// the image will scale propotionally given the |zoom_factor| multiplier. The
// encoded JPEG data will be written into the supplied vector |image_data|.
@@ -82,7 +82,7 @@ class PrintWebViewHelper : public WebViewDelegate {
WebKit::WebFrame* frame,
float zoom_factor,
std::vector<unsigned char>* image_data);
-
+#endif
protected:
bool CopyAndPrint(const ViewMsg_PrintPages_Params& params,
WebKit::WebFrame* web_frame);