OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void OnTempFileForPrintingWritten(int browser_fd); | 116 void OnTempFileForPrintingWritten(int browser_fd); |
117 #endif | 117 #endif |
118 | 118 |
119 // The RenderView expects default print settings. | 119 // The RenderView expects default print settings. |
120 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting); | 120 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting); |
121 | 121 |
122 // The RenderView expects final print settings from the user. | 122 // The RenderView expects final print settings from the user. |
123 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params, | 123 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params, |
124 PrintMsg_PrintPages_Params* settings); | 124 PrintMsg_PrintPages_Params* settings); |
125 | 125 |
126 void OnDidGetPrintedPagesCount(int cookie, int number_pages); | 126 void OnDidGetBasicPrintJobInfo(int cookie, |
| 127 int number_pages, |
| 128 const string16& job_title); |
127 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); | 129 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); |
128 | 130 |
129 IPC::TestSink sink_; | 131 IPC::TestSink sink_; |
130 | 132 |
131 // Routing id what will be assigned to the Widget. | 133 // Routing id what will be assigned to the Widget. |
132 int32 routing_id_; | 134 int32 routing_id_; |
133 | 135 |
134 // Opener id reported by the Widget. | 136 // Opener id reported by the Widget. |
135 int32 opener_id_; | 137 int32 opener_id_; |
136 | 138 |
(...skipping 11 matching lines...) Expand all Loading... |
148 // for MockRenderThread. | 150 // for MockRenderThread. |
149 ExtensionSet extensions_; | 151 ExtensionSet extensions_; |
150 | 152 |
151 bool is_extension_process_; | 153 bool is_extension_process_; |
152 | 154 |
153 // True to simulate user clicking print. False to cancel. | 155 // True to simulate user clicking print. False to cancel. |
154 bool print_dialog_user_response_; | 156 bool print_dialog_user_response_; |
155 }; | 157 }; |
156 | 158 |
157 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ | 159 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ |
OLD | NEW |