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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); | 131 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); |
132 void OnDidGetPreviewPageCount( | 132 void OnDidGetPreviewPageCount( |
133 const PrintHostMsg_DidGetPreviewPageCount_Params& params); | 133 const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
134 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); | 134 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); |
135 void OnCheckForCancel(const std::string& preview_ui_addr, | 135 void OnCheckForCancel(const std::string& preview_ui_addr, |
136 int preview_request_id, | 136 int preview_request_id, |
137 bool* cancel); | 137 bool* cancel); |
138 | 138 |
139 | 139 |
140 // For print preview, PrintWebViewHelper will update settings. | 140 // For print preview, PrintWebViewHelper will update settings. |
141 void OnUpdatePrintSettings(int document_cookie, | 141 void OnUpdatePrintSettings(const DictionaryValue& job_settings, |
142 const DictionaryValue& job_settings, | |
143 PrintMsg_PrintPages_Params* params); | 142 PrintMsg_PrintPages_Params* params); |
144 | 143 |
145 IPC::TestSink sink_; | 144 IPC::TestSink sink_; |
146 | 145 |
147 // Routing id what will be assigned to the Widget. | 146 // Routing id what will be assigned to the Widget. |
148 int32 routing_id_; | 147 int32 routing_id_; |
149 | 148 |
150 // Opener id reported by the Widget. | 149 // Opener id reported by the Widget. |
151 int32 opener_id_; | 150 int32 opener_id_; |
152 | 151 |
(...skipping 12 matching lines...) Expand all Loading... |
165 | 164 |
166 // Simulates cancelling print preview if |print_preview_pages_remaining_| | 165 // Simulates cancelling print preview if |print_preview_pages_remaining_| |
167 // equals this. | 166 // equals this. |
168 int print_preview_cancel_page_number_; | 167 int print_preview_cancel_page_number_; |
169 | 168 |
170 // Number of pages to generate for print preview. | 169 // Number of pages to generate for print preview. |
171 int print_preview_pages_remaining_; | 170 int print_preview_pages_remaining_; |
172 }; | 171 }; |
173 | 172 |
174 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ | 173 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ |
OLD | NEW |