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

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

Issue 6775013: PrintPreview: While printing the preview data, set the initiator tab title as print job name. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated the CL. Created 9 years, 8 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_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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void OnTempFileForPrintingWritten(int browser_fd); 112 void OnTempFileForPrintingWritten(int browser_fd);
113 #endif 113 #endif
114 114
115 // The RenderView expects default print settings. 115 // The RenderView expects default print settings.
116 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting); 116 void OnGetDefaultPrintSettings(PrintMsg_Print_Params* setting);
117 117
118 // The RenderView expects final print settings from the user. 118 // The RenderView expects final print settings from the user.
119 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params, 119 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params,
120 PrintMsg_PrintPages_Params* settings); 120 PrintMsg_PrintPages_Params* settings);
121 121
122 void OnDidGetPrintedPagesCount(int cookie, int number_pages); 122 void OnDidGetBasicPrintJobInfo(int cookie,
123 int number_pages,
124 const string16& job_title);
123 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); 125 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
124 126
125 IPC::TestSink sink_; 127 IPC::TestSink sink_;
126 128
127 // Routing id what will be assigned to the Widget. 129 // Routing id what will be assigned to the Widget.
128 int32 routing_id_; 130 int32 routing_id_;
129 131
130 // Opener id reported by the Widget. 132 // Opener id reported by the Widget.
131 int32 opener_id_; 133 int32 opener_id_;
132 134
133 // We only keep track of one Widget, we learn its pointer when it 135 // We only keep track of one Widget, we learn its pointer when it
134 // adds a new route. 136 // adds a new route.
135 IPC::Channel::Listener* widget_; 137 IPC::Channel::Listener* widget_;
136 138
137 // The last known good deserializer for sync messages. 139 // The last known good deserializer for sync messages.
138 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 140 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
139 141
140 // A mock printer device used for printing tests. 142 // A mock printer device used for printing tests.
141 scoped_ptr<MockPrinter> printer_; 143 scoped_ptr<MockPrinter> printer_;
142 144
143 // True to simulate user clicking print. False to cancel. 145 // True to simulate user clicking print. False to cancel.
144 bool print_dialog_user_response_; 146 bool print_dialog_user_response_;
145 }; 147 };
146 148
147 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 149 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698