| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 OM_POSTFIX, | 280 OM_POSTFIX, |
| 281 OM_LARGE_PHOTO, | 281 OM_LARGE_PHOTO, |
| 282 OM_FOLIO, | 282 OM_FOLIO, |
| 283 OM_FOLIO_SP, | 283 OM_FOLIO_SP, |
| 284 OM_INVITE, | 284 OM_INVITE, |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 struct Media { | 287 struct Media { |
| 288 Media(); | 288 Media(); |
| 289 | 289 |
| 290 Media(MediaType type); |
| 291 |
| 290 Media(MediaType type, int32 width_um, int32 height_um); | 292 Media(MediaType type, int32 width_um, int32 height_um); |
| 291 | 293 |
| 292 Media(const std::string& custom_display_name, | 294 Media(const std::string& custom_display_name, |
| 293 int32 width_um, | 295 int32 width_um, |
| 294 int32 height_um); | 296 int32 height_um); |
| 295 | 297 |
| 298 bool MatchByType(); |
| 296 bool MatchBySize(); | 299 bool MatchBySize(); |
| 297 | 300 |
| 298 bool IsValid() const; | 301 bool IsValid() const; |
| 299 bool operator==(const Media& other) const; | 302 bool operator==(const Media& other) const; |
| 300 bool operator!=(const Media& other) const { return !(*this == other); } | 303 bool operator!=(const Media& other) const { return !(*this == other); } |
| 301 | 304 |
| 302 MediaType type; | 305 MediaType type; |
| 303 int32 width_um; | 306 int32 width_um; |
| 304 int32 height_um; | 307 int32 height_um; |
| 305 bool is_continuous_feed; | 308 bool is_continuous_feed; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 typedef TicketItem<int32, CopiesTraits> CopiesTicketItem; | 364 typedef TicketItem<int32, CopiesTraits> CopiesTicketItem; |
| 362 typedef TicketItem<PageRange, PageRangeTraits> PageRangeTicketItem; | 365 typedef TicketItem<PageRange, PageRangeTraits> PageRangeTicketItem; |
| 363 typedef TicketItem<bool, CollateTraits> CollateTicketItem; | 366 typedef TicketItem<bool, CollateTraits> CollateTicketItem; |
| 364 typedef TicketItem<bool, ReverseTraits> ReverseTicketItem; | 367 typedef TicketItem<bool, ReverseTraits> ReverseTicketItem; |
| 365 | 368 |
| 366 } // namespace printer | 369 } // namespace printer |
| 367 | 370 |
| 368 } // namespace cloud_devices | 371 } // namespace cloud_devices |
| 369 | 372 |
| 370 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ | 373 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ |
| OLD | NEW |