OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/renderer/chrome_mock_render_thread.h" | 5 #include "chrome/renderer/chrome_mock_render_thread.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/extension_messages.h" | |
11 #include "chrome/renderer/mock_printer.h" | 10 #include "chrome/renderer/mock_printer.h" |
| 11 #include "extensions/common/extension_messages.h" |
12 #include "ipc/ipc_sync_message.h" | 12 #include "ipc/ipc_sync_message.h" |
| 13 #include "printing/page_range.h" |
13 #include "printing/print_job_constants.h" | 14 #include "printing/print_job_constants.h" |
14 #include "printing/page_range.h" | |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
18 #include <fcntl.h> | 18 #include <fcntl.h> |
19 | 19 |
20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
21 #endif | 21 #endif |
22 | 22 |
23 #if defined(ENABLE_PRINTING) | 23 #if defined(ENABLE_PRINTING) |
24 #include "chrome/common/print_messages.h" | 24 #include "chrome/common/print_messages.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 220 } |
221 | 221 |
222 void ChromeMockRenderThread::set_print_preview_cancel_page_number(int page) { | 222 void ChromeMockRenderThread::set_print_preview_cancel_page_number(int page) { |
223 print_preview_cancel_page_number_ = page; | 223 print_preview_cancel_page_number_ = page; |
224 } | 224 } |
225 | 225 |
226 int ChromeMockRenderThread::print_preview_pages_remaining() const { | 226 int ChromeMockRenderThread::print_preview_pages_remaining() const { |
227 return print_preview_pages_remaining_; | 227 return print_preview_pages_remaining_; |
228 } | 228 } |
229 #endif // defined(ENABLE_PRINTING) | 229 #endif // defined(ENABLE_PRINTING) |
OLD | NEW |