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

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

Issue 196021: Implement PrintPageAsJPEG feature for Print Preview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « no previous file | src/chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool has_widget() const { 63 bool has_widget() const {
64 return widget_ ? true : false; 64 return widget_ ? true : false;
65 } 65 }
66 66
67 // Simulates the Widget receiving a close message. This should result 67 // Simulates the Widget receiving a close message. This should result
68 // on releasing the internal reference counts and destroying the internal 68 // on releasing the internal reference counts and destroying the internal
69 // state. 69 // state.
70 void SendCloseMessage(); 70 void SendCloseMessage();
71 71
72 // Returns the pseudo-printer instance. 72 // Returns the pseudo-printer instance.
73 const MockPrinter* printer() const { return printer_.get(); } 73 MockPrinter* printer() const { return printer_.get(); }
74 74
75 private: 75 private:
76 // This function operates as a regular IPC listener. 76 // This function operates as a regular IPC listener.
77 void OnMessageReceived(const IPC::Message& msg); 77 void OnMessageReceived(const IPC::Message& msg);
78 78
79 // The Widget expects to be returned valid route_id. 79 // The Widget expects to be returned valid route_id.
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
(...skipping 28 matching lines...) Expand all
112 IPC::Channel::Listener* widget_; 112 IPC::Channel::Listener* widget_;
113 113
114 // The last known good deserializer for sync messages. 114 // The last known good deserializer for sync messages.
115 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 115 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
116 116
117 // A mock printer device used for printing tests. 117 // A mock printer device used for printing tests.
118 scoped_ptr<MockPrinter> printer_; 118 scoped_ptr<MockPrinter> printer_;
119 }; 119 };
120 120
121 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 121 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | src/chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698