summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/render_messages_internal.h12
-rw-r--r--chrome/common/temp_scaffolding_stubs.h2
2 files changed, 12 insertions, 2 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index d29d41d..8a48182 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -1341,7 +1341,7 @@ IPC_BEGIN_MESSAGES(ViewHost)
IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings,
ViewMsg_Print_Params /* default_settings */)
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
// It's the renderer that controls the printing process when it is generated
// by javascript. This step is about showing UI to the user to select the
// final print settings. The output parameter is the same as
@@ -1350,7 +1350,7 @@ IPC_BEGIN_MESSAGES(ViewHost)
ViewHostMsg_ScriptedPrint_Params,
ViewMsg_PrintPages_Params /* settings choosen by
the user*/)
-#endif // defined(OS_WIN)
+#endif // defined(OS_WIN) || defined(OS_MACOSX)
// WebKit and JavaScript error messages to log to the console
// or debugger UI.
@@ -1526,6 +1526,14 @@ IPC_BEGIN_MESSAGES(ViewHost)
int /* fd in browser */)
#endif
+#if defined(OS_MACOSX)
+ // Asks the browser create a block of shared memory for the renderer to pass
+ // NativeMetafile data to the browser.
+ IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_AllocatePDFTransport,
+ size_t /* buffer size */,
+ base::SharedMemoryHandle /* browser handle */)
+#endif
+
// Provide the browser process with information about the WebCore resource
// cache.
IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats,
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 2971ddd..d4097b8 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -46,6 +46,7 @@ void InstallJankometer(const CommandLine&);
//---------------------------------------------------------------------------
// These stubs are for BrowserProcessImpl
+#if !defined(OS_MACOSX)
class ViewMsg_Print_Params;
// Printing is all (obviously) not implemented.
@@ -117,6 +118,7 @@ class PrintJobManager {
};
} // namespace printing
+#endif // !OS_MACOSX
//---------------------------------------------------------------------------
// These stubs are for Browser