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(InstantSuggestionType) |
| 119 IPC_ENUM_TRAITS(InstantSizeUnits) |
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) |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 IPC_STRUCT_TRAITS_END() | 173 IPC_STRUCT_TRAITS_END() |
172 | 174 |
173 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) | 175 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) |
174 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) | 176 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) |
175 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) | 177 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) |
176 IPC_STRUCT_TRAITS_MEMBER(capacity) | 178 IPC_STRUCT_TRAITS_MEMBER(capacity) |
177 IPC_STRUCT_TRAITS_MEMBER(liveSize) | 179 IPC_STRUCT_TRAITS_MEMBER(liveSize) |
178 IPC_STRUCT_TRAITS_MEMBER(deadSize) | 180 IPC_STRUCT_TRAITS_MEMBER(deadSize) |
179 IPC_STRUCT_TRAITS_END() | 181 IPC_STRUCT_TRAITS_END() |
180 | 182 |
| 183 IPC_STRUCT_TRAITS_BEGIN(InstantNativeSuggestionsParts) |
| 184 IPC_STRUCT_TRAITS_MEMBER(provider) |
| 185 IPC_STRUCT_TRAITS_MEMBER(is_search) |
| 186 IPC_STRUCT_TRAITS_MEMBER(contents) |
| 187 IPC_STRUCT_TRAITS_MEMBER(destination_url) |
| 188 IPC_STRUCT_TRAITS_MEMBER(relevance) |
| 189 IPC_STRUCT_TRAITS_END() |
| 190 |
| 191 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion) |
| 192 IPC_STRUCT_TRAITS_MEMBER(text) |
| 193 IPC_STRUCT_TRAITS_MEMBER(behavior) |
| 194 IPC_STRUCT_TRAITS_MEMBER(type) |
| 195 IPC_STRUCT_TRAITS_END() |
| 196 |
181 //----------------------------------------------------------------------------- | 197 //----------------------------------------------------------------------------- |
182 // RenderView messages | 198 // RenderView messages |
183 // These are messages sent from the browser to the renderer process. | 199 // These are messages sent from the browser to the renderer process. |
184 | 200 |
185 // Tells the renderer to set its maximum cache size to the supplied value. | 201 // Tells the renderer to set its maximum cache size to the supplied value. |
186 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, | 202 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, |
187 size_t /* min_dead_capacity */, | 203 size_t /* min_dead_capacity */, |
188 size_t /* max_dead_capacity */, | 204 size_t /* max_dead_capacity */, |
189 size_t /* capacity */) | 205 size_t /* capacity */) |
190 | 206 |
(...skipping 73 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 int /* selection_start */, | 288 int /* selection_start */, |
273 int /* selection_end */) | 289 int /* selection_end */) |
| 290 |
274 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit, | 291 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit, |
275 string16 /* value */, | 292 string16 /* value */, |
276 bool /* verbatim */) | 293 bool /* verbatim */) |
| 294 |
277 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxCancel) | 295 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxCancel) |
| 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_ROUTED4(ChromeViewMsg_DetermineIfPageSupportsInstant, | 300 IPC_MESSAGE_ROUTED4(ChromeViewMsg_DetermineIfPageSupportsInstant, |
281 string16 /* value*/, | 301 string16 /* value*/, |
282 bool /* verbatim */, | 302 bool /* verbatim */, |
283 int /* selection_start */, | 303 int /* selection_start */, |
284 int /* selection_end */) | 304 int /* selection_end */) |
285 | 305 |
| 306 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxNativeSuggestions, |
| 307 std::vector<InstantNativeSuggestionsParts> |
| 308 /* native_suggestions */) |
| 309 |
| 310 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxKeyPress, |
| 311 int /* keycode */) |
| 312 |
| 313 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxLastQuery, |
| 314 std::string /* last_query */) |
| 315 |
| 316 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCurrentURL, |
| 317 std::string /* current_url */) |
| 318 |
| 319 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxFocused) |
| 320 |
| 321 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxBlurred) |
| 322 |
286 // Toggles visual muting of the render view area. This is on when a constrained | 323 // Toggles visual muting of the render view area. This is on when a constrained |
287 // window is showing. | 324 // window is showing. |
288 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, | 325 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, |
289 bool /* deemphazied */) | 326 bool /* deemphazied */) |
290 | 327 |
291 // Tells the renderer to translate the page contents from one language to | 328 // Tells the renderer to translate the page contents from one language to |
292 // another. | 329 // another. |
293 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, | 330 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, |
294 int /* page id */, | 331 int /* page id */, |
295 std::string, /* the script injected in the page */ | 332 std::string, /* the script injected in the page */ |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) | 627 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) |
591 | 628 |
592 // Sent when the renderer was prevented from running insecure content in | 629 // Sent when the renderer was prevented from running insecure content in |
593 // a secure origin by a security policy. The page may appear incomplete. | 630 // a secure origin by a security policy. The page may appear incomplete. |
594 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) | 631 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) |
595 | 632 |
596 // Message sent from renderer to the browser when the element that is focused | 633 // Message sent from renderer to the browser when the element that is focused |
597 // and currently accepts keyboard input inside the webpage has been touched. | 634 // and currently accepts keyboard input inside the webpage has been touched. |
598 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) | 635 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) |
599 | 636 |
600 // Suggest results ----------------------------------------------------------- | 637 // Sent by the Instant preview to populate the omnibox with query suggestions. |
| 638 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions, |
| 639 int /* page_id */, |
| 640 std::vector<InstantSuggestion> /* suggestions */) |
601 | 641 |
602 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions, | 642 // Sent by the Instant preview indicating whether the page supports the Instant |
603 int32 /* page_id */, | 643 // API or not (http://dev.chromium.org/searchbox). |
604 std::vector<std::string> /* suggestions */, | 644 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, |
605 InstantCompleteBehavior) | 645 int /* page_id */, |
| 646 bool /* result */) |
606 | 647 |
607 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, | 648 // Sent by the Instant preview asking to resize itself to the given height. |
608 int32 /* page_id */, | 649 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetInstantPreviewHeight, |
609 bool /* result */) | 650 int /* page_id */, |
| 651 int /* height */, |
| 652 InstantSizeUnits /* units */) |
610 | 653 |
611 // The currently displayed PDF has an unsupported feature. | 654 // The currently displayed PDF has an unsupported feature. |
612 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) | 655 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) |
613 | 656 |
614 // This message indicates the error appeared in the frame. | 657 // This message indicates the error appeared in the frame. |
615 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, | 658 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, |
616 int /* error */) | 659 int /* error */) |
617 | 660 |
618 // This message indicates the monitored frame loading had completed. | 661 // This message indicates the monitored frame loading had completed. |
619 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) | 662 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) |
(...skipping 11 matching lines...) Expand all Loading... |
631 // previous SetCookie message to be processed. | 674 // previous SetCookie message to be processed. |
632 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 675 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
633 GURL /* url */, | 676 GURL /* url */, |
634 GURL /* first_party_for_cookies */, | 677 GURL /* first_party_for_cookies */, |
635 std::string /* cookies */) | 678 std::string /* cookies */) |
636 | 679 |
637 // Provide the browser process with current renderer framerate. | 680 // Provide the browser process with current renderer framerate. |
638 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 681 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
639 int /* routing id */, | 682 int /* routing id */, |
640 float /* frames per second */) | 683 float /* frames per second */) |
OLD | NEW |