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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // Cancel print preview when print preview has |page| remaining pages. | 43 // Cancel print preview when print preview has |page| remaining pages. |
44 void set_print_preview_cancel_page_number(int page); | 44 void set_print_preview_cancel_page_number(int page); |
45 | 45 |
46 // Get the number of pages to generate for print preview. | 46 // Get the number of pages to generate for print preview. |
47 int print_preview_pages_remaining(); | 47 int print_preview_pages_remaining(); |
48 | 48 |
49 private: | 49 private: |
50 // Overrides base class implementation to add custom handling for | 50 // Overrides base class implementation to add custom handling for |
51 // print and extensions. | 51 // print and extensions. |
52 virtual bool OnMessageReceived(const IPC::Message& msg); | 52 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
53 | 53 |
54 // The callee expects to be returned a valid channel_id. | 54 // The callee expects to be returned a valid channel_id. |
55 void OnMsgOpenChannelToExtension( | 55 void OnMsgOpenChannelToExtension( |
56 int routing_id, const std::string& extension_id, | 56 int routing_id, const std::string& extension_id, |
57 const std::string& source_extension_id, | 57 const std::string& source_extension_id, |
58 const std::string& target_extension_id, int* port_id); | 58 const std::string& target_extension_id, int* port_id); |
59 | 59 |
60 #if defined(OS_CHROMEOS) | 60 #if defined(OS_CHROMEOS) |
61 void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, | 61 void OnAllocateTempFileForPrinting(base::FileDescriptor* renderer_fd, |
62 int* browser_fd); | 62 int* browser_fd); |
(...skipping 30 matching lines...) Expand all Loading... |
93 | 93 |
94 // Simulates cancelling print preview if |print_preview_pages_remaining_| | 94 // Simulates cancelling print preview if |print_preview_pages_remaining_| |
95 // equals this. | 95 // equals this. |
96 int print_preview_cancel_page_number_; | 96 int print_preview_cancel_page_number_; |
97 | 97 |
98 // Number of pages to generate for print preview. | 98 // Number of pages to generate for print preview. |
99 int print_preview_pages_remaining_; | 99 int print_preview_pages_remaining_; |
100 }; | 100 }; |
101 | 101 |
102 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ | 102 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ |
OLD | NEW |