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

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

Issue 294923005: Add media size capability to PDF printer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a comment to the new query stopping code. Created 6 years, 6 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 | Annotate | Revision Log
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 <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
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 explicit 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
296 bool MatchBySize(); 298 bool MatchBySize();
297 299
298 bool IsValid() const; 300 bool IsValid() const;
299 bool operator==(const Media& other) const; 301 bool operator==(const Media& other) const;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 typedef TicketItem<int32, CopiesTraits> CopiesTicketItem; 363 typedef TicketItem<int32, CopiesTraits> CopiesTicketItem;
362 typedef TicketItem<PageRange, PageRangeTraits> PageRangeTicketItem; 364 typedef TicketItem<PageRange, PageRangeTraits> PageRangeTicketItem;
363 typedef TicketItem<bool, CollateTraits> CollateTicketItem; 365 typedef TicketItem<bool, CollateTraits> CollateTicketItem;
364 typedef TicketItem<bool, ReverseTraits> ReverseTicketItem; 366 typedef TicketItem<bool, ReverseTraits> ReverseTicketItem;
365 367
366 } // namespace printer 368 } // namespace printer
367 369
368 } // namespace cloud_devices 370 } // namespace cloud_devices
369 371
370 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_ 372 #endif // COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_PRINTER_DESCRIPTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698