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

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

Issue 276004: Wire up printing on the Mac (Closed)
Patch Set: Created 11 years, 2 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
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 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_
6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void OnMsgCreateWidget(int opener_id, 80 void OnMsgCreateWidget(int opener_id,
81 bool activatable, 81 bool activatable,
82 int* route_id); 82 int* route_id);
83 83
84 // The callee expects to be returned a valid channel_id. 84 // The callee expects to be returned a valid channel_id.
85 void OnMsgOpenChannelToExtension( 85 void OnMsgOpenChannelToExtension(
86 int routing_id, const std::string& extension_id, 86 int routing_id, const std::string& extension_id,
87 const std::string& source_extension_id, 87 const std::string& source_extension_id,
88 const std::string& target_extension_id, int* port_id); 88 const std::string& target_extension_id, int* port_id);
89 89
90 #if defined(OS_WIN)
90 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, 91 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle,
91 base::SharedMemoryHandle* browser_handle); 92 base::SharedMemoryHandle* browser_handle);
93 #endif
94
95 #if defined(OS_MACOSX)
96 void OnAllocatePDFTransport(size_t buffer_size,
97 base::SharedMemoryHandle* handle);
98 #endif
92 99
93 // The RenderView expects default print settings. 100 // The RenderView expects default print settings.
94 void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting); 101 void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting);
95 102
96 // The RenderView expects final print settings from the user. 103 // The RenderView expects final print settings from the user.
97 void OnScriptedPrint(const ViewHostMsg_ScriptedPrint_Params& params, 104 void OnScriptedPrint(const ViewHostMsg_ScriptedPrint_Params& params,
98 ViewMsg_PrintPages_Params* settings); 105 ViewMsg_PrintPages_Params* settings);
99 106
100 void OnDidGetPrintedPagesCount(int cookie, int number_pages); 107 void OnDidGetPrintedPagesCount(int cookie, int number_pages);
101 void OnDidPrintPage(const ViewHostMsg_DidPrintPage_Params& params); 108 void OnDidPrintPage(const ViewHostMsg_DidPrintPage_Params& params);
(...skipping 11 matching lines...) Expand all
113 IPC::Channel::Listener* widget_; 120 IPC::Channel::Listener* widget_;
114 121
115 // The last known good deserializer for sync messages. 122 // The last known good deserializer for sync messages.
116 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 123 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
117 124
118 // A mock printer device used for printing tests. 125 // A mock printer device used for printing tests.
119 scoped_ptr<MockPrinter> printer_; 126 scoped_ptr<MockPrinter> printer_;
120 }; 127 };
121 128
122 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 129 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698