OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 IPC_STRUCT_TRAITS_MEMBER(to) | 41 IPC_STRUCT_TRAITS_MEMBER(to) |
42 IPC_STRUCT_TRAITS_END() | 42 IPC_STRUCT_TRAITS_END() |
43 | 43 |
44 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) | 44 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults) |
45 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) | 45 IPC_STRUCT_TRAITS_MEMBER(printer_capabilities) |
46 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) | 46 IPC_STRUCT_TRAITS_MEMBER(caps_mime_type) |
47 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) | 47 IPC_STRUCT_TRAITS_MEMBER(printer_defaults) |
48 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type) | 48 IPC_STRUCT_TRAITS_MEMBER(defaults_mime_type) |
49 IPC_STRUCT_TRAITS_END() | 49 IPC_STRUCT_TRAITS_END() |
50 | 50 |
51 IPC_ENUM_TRAITS(printing::DuplexMode) | 51 IPC_ENUM_TRAITS_MAX_VALUE(printing::ColorModel, printing::PROCESSCOLORMODEL_RGB) |
| 52 IPC_ENUM_TRAITS_MAX_VALUE(printing::DuplexMode, printing::SHORT_EDGE) |
52 | 53 |
53 #if defined(OS_WIN) | |
54 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults::Paper) | 54 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults::Paper) |
55 IPC_STRUCT_TRAITS_MEMBER(name) | 55 IPC_STRUCT_TRAITS_MEMBER(name) |
56 IPC_STRUCT_TRAITS_MEMBER(size_um) | 56 IPC_STRUCT_TRAITS_MEMBER(size_um) |
57 IPC_STRUCT_TRAITS_END() | 57 IPC_STRUCT_TRAITS_END() |
58 #endif | |
59 | 58 |
60 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults) | 59 IPC_STRUCT_TRAITS_BEGIN(printing::PrinterSemanticCapsAndDefaults) |
61 IPC_STRUCT_TRAITS_MEMBER(collate_capable) | 60 IPC_STRUCT_TRAITS_MEMBER(collate_capable) |
62 IPC_STRUCT_TRAITS_MEMBER(collate_default) | 61 IPC_STRUCT_TRAITS_MEMBER(collate_default) |
63 IPC_STRUCT_TRAITS_MEMBER(copies_capable) | 62 IPC_STRUCT_TRAITS_MEMBER(copies_capable) |
64 IPC_STRUCT_TRAITS_MEMBER(duplex_capable) | 63 IPC_STRUCT_TRAITS_MEMBER(duplex_capable) |
65 IPC_STRUCT_TRAITS_MEMBER(duplex_default) | 64 IPC_STRUCT_TRAITS_MEMBER(duplex_default) |
66 IPC_STRUCT_TRAITS_MEMBER(color_changeable) | 65 IPC_STRUCT_TRAITS_MEMBER(color_changeable) |
67 IPC_STRUCT_TRAITS_MEMBER(color_default) | 66 IPC_STRUCT_TRAITS_MEMBER(color_default) |
68 #if defined(USE_CUPS) | |
69 IPC_STRUCT_TRAITS_MEMBER(color_model) | 67 IPC_STRUCT_TRAITS_MEMBER(color_model) |
70 IPC_STRUCT_TRAITS_MEMBER(bw_model) | 68 IPC_STRUCT_TRAITS_MEMBER(bw_model) |
71 #endif | |
72 #if defined(OS_WIN) | |
73 IPC_STRUCT_TRAITS_MEMBER(papers) | 69 IPC_STRUCT_TRAITS_MEMBER(papers) |
74 IPC_STRUCT_TRAITS_MEMBER(default_paper) | 70 IPC_STRUCT_TRAITS_MEMBER(default_paper) |
75 IPC_STRUCT_TRAITS_MEMBER(dpis) | 71 IPC_STRUCT_TRAITS_MEMBER(dpis) |
76 IPC_STRUCT_TRAITS_MEMBER(default_dpi) | 72 IPC_STRUCT_TRAITS_MEMBER(default_dpi) |
77 #endif | |
78 IPC_STRUCT_TRAITS_END() | 73 IPC_STRUCT_TRAITS_END() |
79 | 74 |
80 IPC_ENUM_TRAITS(printing::PwgRasterTransformType); | 75 IPC_ENUM_TRAITS(printing::PwgRasterTransformType); |
81 | 76 |
82 IPC_STRUCT_TRAITS_BEGIN(printing::PwgRasterSettings) | 77 IPC_STRUCT_TRAITS_BEGIN(printing::PwgRasterSettings) |
83 IPC_STRUCT_TRAITS_MEMBER(odd_page_transform) | 78 IPC_STRUCT_TRAITS_MEMBER(odd_page_transform) |
84 IPC_STRUCT_TRAITS_MEMBER(rotate_all_pages) | 79 IPC_STRUCT_TRAITS_MEMBER(rotate_all_pages) |
85 IPC_STRUCT_TRAITS_MEMBER(reverse_page_order) | 80 IPC_STRUCT_TRAITS_MEMBER(reverse_page_order) |
86 IPC_STRUCT_TRAITS_END() | 81 IPC_STRUCT_TRAITS_END() |
87 | 82 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, | 518 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, |
524 std::string /* ssid */, | 519 std::string /* ssid */, |
525 std::vector<uint8> /* public_key */) | 520 std::vector<uint8> /* public_key */) |
526 | 521 |
527 // Reply after getting WiFi credentials from the system and encrypting them with | 522 // Reply after getting WiFi credentials from the system and encrypting them with |
528 // caller's public key. |success| is false if error occurred. | 523 // caller's public key. |success| is false if error occurred. |
529 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, | 524 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, |
530 std::vector<uint8> /* encrypted_key_data */, | 525 std::vector<uint8> /* encrypted_key_data */, |
531 bool /* success */) | 526 bool /* success */) |
532 #endif // defined(OS_WIN) | 527 #endif // defined(OS_WIN) |
OLD | NEW |