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 // IPC messages for extensions. | 5 // IPC messages for extensions. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/draggable_region.h" | 10 #include "chrome/common/extensions/draggable_region.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 IPC_STRUCT_TRAITS_MEMBER(description) | 95 IPC_STRUCT_TRAITS_MEMBER(description) |
96 IPC_STRUCT_TRAITS_MEMBER(app_url) | 96 IPC_STRUCT_TRAITS_MEMBER(app_url) |
97 IPC_STRUCT_TRAITS_MEMBER(icons) | 97 IPC_STRUCT_TRAITS_MEMBER(icons) |
98 IPC_STRUCT_TRAITS_MEMBER(permissions) | 98 IPC_STRUCT_TRAITS_MEMBER(permissions) |
99 IPC_STRUCT_TRAITS_MEMBER(launch_container) | 99 IPC_STRUCT_TRAITS_MEMBER(launch_container) |
100 IPC_STRUCT_TRAITS_MEMBER(is_offline_enabled) | 100 IPC_STRUCT_TRAITS_MEMBER(is_offline_enabled) |
101 IPC_STRUCT_TRAITS_END() | 101 IPC_STRUCT_TRAITS_END() |
102 | 102 |
103 IPC_STRUCT_TRAITS_BEGIN(extensions::DraggableRegion) | 103 IPC_STRUCT_TRAITS_BEGIN(extensions::DraggableRegion) |
104 IPC_STRUCT_TRAITS_MEMBER(draggable) | 104 IPC_STRUCT_TRAITS_MEMBER(draggable) |
105 IPC_STRUCT_TRAITS_MEMBER(label) | |
106 IPC_STRUCT_TRAITS_MEMBER(bounds) | 105 IPC_STRUCT_TRAITS_MEMBER(bounds) |
107 IPC_STRUCT_TRAITS_MEMBER(clip) | |
108 IPC_STRUCT_TRAITS_END() | 106 IPC_STRUCT_TRAITS_END() |
109 | 107 |
110 // Singly-included section for custom IPC traits. | 108 // Singly-included section for custom IPC traits. |
111 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ | 109 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ |
112 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ | 110 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ |
113 | 111 |
114 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need | 112 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
115 // to typedef it to avoid that. | 113 // to typedef it to avoid that. |
116 // Substitution map for l10n messages. | 114 // Substitution map for l10n messages. |
117 typedef std::map<std::string, std::string> SubstitutionMap; | 115 typedef std::map<std::string, std::string> SubstitutionMap; |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // browser process. | 552 // browser process. |
555 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 553 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
556 int /* unique_id */) | 554 int /* unique_id */) |
557 | 555 |
558 // Resumes resource requests for a newly created app window. | 556 // Resumes resource requests for a newly created app window. |
559 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 557 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
560 | 558 |
561 // Sent by the renderer when the draggable regions are updated. | 559 // Sent by the renderer when the draggable regions are updated. |
562 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 560 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
563 std::vector<extensions::DraggableRegion> /* regions */) | 561 std::vector<extensions::DraggableRegion> /* regions */) |
OLD | NEW |