Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: components/cloud_devices/common/printer_description.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698