OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PRINTING_MOCK_PRINTER_H_ | 5 #ifndef CHROME_RENDERER_PRINTING_MOCK_PRINTER_H_ |
6 #define CHROME_RENDERER_PRINTING_MOCK_PRINTER_H_ | 6 #define CHROME_RENDERER_PRINTING_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/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "printing/image.h" | 15 #include "printing/image.h" |
16 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" | 16 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/geometry/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. |
25 // The MockPrinter class stores output pages in a vector, so, this class | 25 // The MockPrinter class stores output pages in a vector, so, this class |
26 // inherits the base::RefCounted<> class so that the MockPrinter class can use | 26 // inherits the base::RefCounted<> class so that the MockPrinter class can use |
27 // a smart pointer of this object (i.e. scoped_refptr<>). | 27 // a smart pointer of this object (i.e. scoped_refptr<>). |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 // Used for generating invalid settings. | 158 // Used for generating invalid settings. |
159 bool use_invalid_settings_; | 159 bool use_invalid_settings_; |
160 | 160 |
161 std::vector<scoped_refptr<MockPrinterPage> > pages_; | 161 std::vector<scoped_refptr<MockPrinterPage> > pages_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(MockPrinter); | 163 DISALLOW_COPY_AND_ASSIGN(MockPrinter); |
164 }; | 164 }; |
165 | 165 |
166 #endif // CHROME_RENDERER_PRINTING_MOCK_PRINTER_H_ | 166 #endif // CHROME_RENDERER_PRINTING_MOCK_PRINTER_H_ |
OLD | NEW |