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 #ifndef CHROME_RENDERER_MOCK_PRINTER_H_ | 5 #ifndef CHROME_RENDERER_MOCK_PRINTER_H_ |
6 #define CHROME_RENDERER_MOCK_PRINTER_H_ | 6 #define CHROME_RENDERER_MOCK_PRINTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "printing/image.h" | 15 #include "printing/image.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintScalingOption
.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintScalingOption
.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
19 | 19 |
20 struct PrintMsg_Print_Params; | 20 struct PrintMsg_Print_Params; |
21 struct PrintMsg_PrintPages_Params; | 21 struct PrintMsg_PrintPages_Params; |
22 struct PrintHostMsg_DidPrintPage_Params; | 22 struct PrintHostMsg_DidPrintPage_Params; |
23 | 23 |
24 // A class which represents an output page used in the MockPrinter class. | 24 // A class which represents an output page used in the MockPrinter class. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 // Used for generating invalid settings. | 159 // Used for generating invalid settings. |
160 bool use_invalid_settings_; | 160 bool use_invalid_settings_; |
161 | 161 |
162 std::vector<scoped_refptr<MockPrinterPage> > pages_; | 162 std::vector<scoped_refptr<MockPrinterPage> > pages_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(MockPrinter); | 164 DISALLOW_COPY_AND_ASSIGN(MockPrinter); |
165 }; | 165 }; |
166 | 166 |
167 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ | 167 #endif // CHROME_RENDERER_MOCK_PRINTER_H_ |
OLD | NEW |