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

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

Issue 480303002: Use document from preview for System Dialog printing on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue 08/19/2014 11:17:57.84 Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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_CHROME_MOCK_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
6 #define CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); 87 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
88 void OnDidGetPreviewPageCount( 88 void OnDidGetPreviewPageCount(
89 const PrintHostMsg_DidGetPreviewPageCount_Params& params); 89 const PrintHostMsg_DidGetPreviewPageCount_Params& params);
90 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); 90 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
91 void OnCheckForCancel(int32 preview_ui_id, 91 void OnCheckForCancel(int32 preview_ui_id,
92 int preview_request_id, 92 int preview_request_id,
93 bool* cancel); 93 bool* cancel);
94 94
95 95
96 // For print preview, PrintWebViewHelper will update settings. 96 // For print preview, PrintWebViewHelper will update settings.
97 void OnUpdatePrintSettings(int document_cookie, 97 void OnUpdatePrintSettings(int render_view_id,
98 int document_cookie,
98 const base::DictionaryValue& job_settings, 99 const base::DictionaryValue& job_settings,
99 PrintMsg_PrintPages_Params* params); 100 PrintMsg_PrintPages_Params* params,
101 bool* canceled);
100 102
101 // A mock printer device used for printing tests. 103 // A mock printer device used for printing tests.
102 scoped_ptr<MockPrinter> printer_; 104 scoped_ptr<MockPrinter> printer_;
103 105
104 // True to simulate user clicking print. False to cancel. 106 // True to simulate user clicking print. False to cancel.
105 bool print_dialog_user_response_; 107 bool print_dialog_user_response_;
106 108
107 // Simulates cancelling print preview if |print_preview_pages_remaining_| 109 // Simulates cancelling print preview if |print_preview_pages_remaining_|
108 // equals this. 110 // equals this.
109 int print_preview_cancel_page_number_; 111 int print_preview_cancel_page_number_;
110 112
111 // Number of pages to generate for print preview. 113 // Number of pages to generate for print preview.
112 int print_preview_pages_remaining_; 114 int print_preview_pages_remaining_;
113 #endif 115 #endif
114 116
115 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 117 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread); 119 DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread);
118 }; 120 };
119 121
120 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ 122 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698