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 file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <map> | 6 #include <map> |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 }; | 108 }; |
109 | 109 |
110 } // namespace IPC | 110 } // namespace IPC |
111 | 111 |
112 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 112 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
113 | 113 |
114 #define IPC_MESSAGE_START ChromeMsgStart | 114 #define IPC_MESSAGE_START ChromeMsgStart |
115 | 115 |
116 IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) | 116 IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) |
117 IPC_ENUM_TRAITS(InstantCompleteBehavior) | 117 IPC_ENUM_TRAITS(InstantCompleteBehavior) |
118 IPC_ENUM_TRAITS(InstantSizeUnits) | |
119 IPC_ENUM_TRAITS(InstantSuggestionType) | |
118 IPC_ENUM_TRAITS(search_provider::OSDDType) | 120 IPC_ENUM_TRAITS(search_provider::OSDDType) |
119 IPC_ENUM_TRAITS(search_provider::InstallState) | 121 IPC_ENUM_TRAITS(search_provider::InstallState) |
120 IPC_ENUM_TRAITS(TranslateErrors::Type) | 122 IPC_ENUM_TRAITS(TranslateErrors::Type) |
121 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) | 123 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) |
122 | 124 |
123 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) | 125 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) |
124 IPC_STRUCT_TRAITS_MEMBER(value) | 126 IPC_STRUCT_TRAITS_MEMBER(value) |
125 IPC_STRUCT_TRAITS_END() | 127 IPC_STRUCT_TRAITS_END() |
126 | 128 |
127 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) | 129 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) |
128 IPC_STRUCT_TRAITS_MEMBER(scheme) | 130 IPC_STRUCT_TRAITS_MEMBER(scheme) |
129 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) | 131 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) |
130 IPC_STRUCT_TRAITS_MEMBER(host) | 132 IPC_STRUCT_TRAITS_MEMBER(host) |
131 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) | 133 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) |
132 IPC_STRUCT_TRAITS_MEMBER(port) | 134 IPC_STRUCT_TRAITS_MEMBER(port) |
133 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) | 135 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) |
134 IPC_STRUCT_TRAITS_MEMBER(path) | 136 IPC_STRUCT_TRAITS_MEMBER(path) |
135 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard) | 137 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard) |
136 IPC_STRUCT_TRAITS_END() | 138 IPC_STRUCT_TRAITS_END() |
137 | 139 |
138 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) | 140 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) |
139 IPC_STRUCT_TRAITS_MEMBER(primary_pattern) | 141 IPC_STRUCT_TRAITS_MEMBER(primary_pattern) |
140 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) | 142 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) |
141 IPC_STRUCT_TRAITS_MEMBER(setting) | 143 IPC_STRUCT_TRAITS_MEMBER(setting) |
142 IPC_STRUCT_TRAITS_MEMBER(source) | 144 IPC_STRUCT_TRAITS_MEMBER(source) |
143 IPC_STRUCT_TRAITS_MEMBER(incognito) | 145 IPC_STRUCT_TRAITS_MEMBER(incognito) |
144 IPC_STRUCT_TRAITS_END() | 146 IPC_STRUCT_TRAITS_END() |
145 | 147 |
148 IPC_STRUCT_TRAITS_BEGIN(InstantAutocompleteResult) | |
149 IPC_STRUCT_TRAITS_MEMBER(provider) | |
150 IPC_STRUCT_TRAITS_MEMBER(is_search) | |
151 IPC_STRUCT_TRAITS_MEMBER(contents) | |
152 IPC_STRUCT_TRAITS_MEMBER(destination_url) | |
153 IPC_STRUCT_TRAITS_MEMBER(relevance) | |
154 IPC_STRUCT_TRAITS_END() | |
155 | |
156 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion) | |
157 IPC_STRUCT_TRAITS_MEMBER(text) | |
158 IPC_STRUCT_TRAITS_MEMBER(behavior) | |
159 IPC_STRUCT_TRAITS_MEMBER(type) | |
160 IPC_STRUCT_TRAITS_END() | |
161 | |
146 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules) | 162 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules) |
147 IPC_STRUCT_TRAITS_MEMBER(image_rules) | 163 IPC_STRUCT_TRAITS_MEMBER(image_rules) |
148 IPC_STRUCT_TRAITS_MEMBER(script_rules) | 164 IPC_STRUCT_TRAITS_MEMBER(script_rules) |
149 IPC_STRUCT_TRAITS_END() | 165 IPC_STRUCT_TRAITS_END() |
150 | 166 |
151 IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore) | 167 IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore) |
152 IPC_STRUCT_TRAITS_MEMBER(boring_score) | 168 IPC_STRUCT_TRAITS_MEMBER(boring_score) |
153 IPC_STRUCT_TRAITS_MEMBER(good_clipping) | 169 IPC_STRUCT_TRAITS_MEMBER(good_clipping) |
154 IPC_STRUCT_TRAITS_MEMBER(at_top) | 170 IPC_STRUCT_TRAITS_MEMBER(at_top) |
155 IPC_STRUCT_TRAITS_MEMBER(time_at_snapshot) | 171 IPC_STRUCT_TRAITS_MEMBER(time_at_snapshot) |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost, | 280 IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost, |
265 std::string /* The message */, | 281 std::string /* The message */, |
266 std::string /* The origin */, | 282 std::string /* The origin */, |
267 std::string /* The target*/) | 283 std::string /* The target*/) |
268 | 284 |
269 IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange, | 285 IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange, |
270 string16 /* value */, | 286 string16 /* value */, |
271 bool /* verbatim */, | 287 bool /* verbatim */, |
272 size_t /* selection_start */, | 288 size_t /* selection_start */, |
273 size_t /* selection_end */) | 289 size_t /* selection_end */) |
290 | |
274 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit, | 291 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit, |
275 string16 /* value */) | 292 string16 /* value */) |
293 | |
276 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCancel, | 294 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCancel, |
277 string16 /* value */) | 295 string16 /* value */) |
296 | |
278 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxResize, | 297 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxResize, |
279 gfx::Rect /* search_box_bounds */) | 298 gfx::Rect /* search_box_bounds */) |
299 | |
280 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant) | 300 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant) |
281 | 301 |
302 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxInstantAutocompleteResults, | |
sreeram
2012/08/09 22:13:51
Drop the "Instant" from the IPC name: ChromeViewMs
Shishir
2012/08/10 18:16:57
Done.
| |
303 std::vector<InstantAutocompleteResult> | |
304 /* native_suggestions */) | |
305 | |
306 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxKeyPress, | |
307 int /* keycode */) | |
308 | |
309 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxLastQuery, | |
310 string16 /* last_query */) | |
311 | |
312 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCurrentURL, | |
313 string16 /* current_url */) | |
314 | |
315 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxFocused) | |
316 | |
317 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxBlurred) | |
sreeram
2012/08/09 22:13:51
Delete these four APIs (LastQuery, CurrentURL, Foc
Shishir
2012/08/10 18:16:57
Done.
| |
318 | |
319 | |
282 // Toggles visual muting of the render view area. This is on when a constrained | 320 // Toggles visual muting of the render view area. This is on when a constrained |
283 // window is showing. | 321 // window is showing. |
284 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, | 322 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, |
285 bool /* deemphazied */) | 323 bool /* deemphazied */) |
286 | 324 |
287 // Tells the renderer to translate the page contents from one language to | 325 // Tells the renderer to translate the page contents from one language to |
288 // another. | 326 // another. |
289 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, | 327 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, |
290 int /* page id */, | 328 int /* page id */, |
291 std::string, /* the script injected in the page */ | 329 std::string, /* the script injected in the page */ |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
594 // a secure origin by a security policy. The page may appear incomplete. | 632 // a secure origin by a security policy. The page may appear incomplete. |
595 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) | 633 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) |
596 | 634 |
597 // Message sent from renderer to the browser when the element that is focused | 635 // Message sent from renderer to the browser when the element that is focused |
598 // and currently accepts keyboard input inside the webpage has been touched. | 636 // and currently accepts keyboard input inside the webpage has been touched. |
599 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) | 637 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) |
600 | 638 |
601 // Suggest results ----------------------------------------------------------- | 639 // Suggest results ----------------------------------------------------------- |
602 | 640 |
603 // Sent by the Instant preview to populate the omnibox with query suggestions. | 641 // Sent by the Instant preview to populate the omnibox with query suggestions. |
604 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions, | 642 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions, |
605 int /* page_id */, | 643 int /* page_id */, |
606 std::vector<string16> /* suggestions */, | 644 std::vector<InstantSuggestion> /* suggestions */) |
607 InstantCompleteBehavior /* behavior */) | |
608 | 645 |
609 // Sent by the Instant preview indicating whether the page supports the Instant | 646 // Sent by the Instant preview indicating whether the page supports the Instant |
610 // API or not (http://dev.chromium.org/searchbox). | 647 // API or not (http://dev.chromium.org/searchbox). |
611 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, | 648 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, |
612 int /* page_id */, | 649 int /* page_id */, |
613 bool /* result */) | 650 bool /* result */) |
614 | 651 |
652 // Sent by the Instant preview asking to resize itself to the given height. | |
653 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetInstantPreviewHeight, | |
654 int /* page_id */, | |
655 int /* height */, | |
656 InstantSizeUnits /* units */) | |
657 | |
615 // The currently displayed PDF has an unsupported feature. | 658 // The currently displayed PDF has an unsupported feature. |
616 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) | 659 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) |
617 | 660 |
618 // This message indicates the error appeared in the frame. | 661 // This message indicates the error appeared in the frame. |
619 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, | 662 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, |
620 int /* error */) | 663 int /* error */) |
621 | 664 |
622 // This message indicates the monitored frame loading had completed. | 665 // This message indicates the monitored frame loading had completed. |
623 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) | 666 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) |
624 | 667 |
(...skipping 10 matching lines...) Expand all Loading... | |
635 // previous SetCookie message to be processed. | 678 // previous SetCookie message to be processed. |
636 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 679 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
637 GURL /* url */, | 680 GURL /* url */, |
638 GURL /* first_party_for_cookies */, | 681 GURL /* first_party_for_cookies */, |
639 std::string /* cookies */) | 682 std::string /* cookies */) |
640 | 683 |
641 // Provide the browser process with current renderer framerate. | 684 // Provide the browser process with current renderer framerate. |
642 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 685 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
643 int /* routing id */, | 686 int /* routing id */, |
644 float /* frames per second */) | 687 float /* frames per second */) |
OLD | NEW |