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 COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ | 5 #ifndef COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ |
6 #define COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ | 6 #define COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 explicit Media(MediaType type); | 292 explicit Media(MediaType type); |
293 | 293 |
294 Media(MediaType type, int32_t width_um, int32_t height_um); | 294 Media(MediaType type, int32_t width_um, int32_t height_um); |
295 | 295 |
296 Media(const std::string& custom_display_name, | 296 Media(const std::string& custom_display_name, |
297 const std::string& vendor_id, | 297 const std::string& vendor_id, |
298 int32_t width_um, | 298 int32_t width_um, |
299 int32_t height_um); | 299 int32_t height_um); |
300 | 300 |
| 301 Media(const Media& other); |
| 302 |
301 bool MatchBySize(); | 303 bool MatchBySize(); |
302 | 304 |
303 bool IsValid() const; | 305 bool IsValid() const; |
304 bool operator==(const Media& other) const; | 306 bool operator==(const Media& other) const; |
305 bool operator!=(const Media& other) const { return !(*this == other); } | 307 bool operator!=(const Media& other) const { return !(*this == other); } |
306 | 308 |
307 MediaType type; | 309 MediaType type; |
308 int32_t width_um; | 310 int32_t width_um; |
309 int32_t height_um; | 311 int32_t height_um; |
310 bool is_continuous_feed; | 312 bool is_continuous_feed; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 typedef TicketItem<int32_t, CopiesTraits> CopiesTicketItem; | 369 typedef TicketItem<int32_t, CopiesTraits> CopiesTicketItem; |
368 typedef TicketItem<PageRange, PageRangeTraits> PageRangeTicketItem; | 370 typedef TicketItem<PageRange, PageRangeTraits> PageRangeTicketItem; |
369 typedef TicketItem<bool, CollateTraits> CollateTicketItem; | 371 typedef TicketItem<bool, CollateTraits> CollateTicketItem; |
370 typedef TicketItem<bool, ReverseTraits> ReverseTicketItem; | 372 typedef TicketItem<bool, ReverseTraits> ReverseTicketItem; |
371 | 373 |
372 } // namespace printer | 374 } // namespace printer |
373 | 375 |
374 } // namespace cloud_devices | 376 } // namespace cloud_devices |
375 | 377 |
376 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ | 378 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ |
OLD | NEW |