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_SearchBoxAutocompleteResults, |
| 303 std::vector<InstantAutocompleteResult> |
| 304 /* native_suggestions */) |
| 305 |
| 306 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxKeyPress, |
| 307 int /* keycode */) |
| 308 |
282 // Toggles visual muting of the render view area. This is on when a constrained | 309 // Toggles visual muting of the render view area. This is on when a constrained |
283 // window is showing. | 310 // window is showing. |
284 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, | 311 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, |
285 bool /* deemphazied */) | 312 bool /* deemphazied */) |
286 | 313 |
287 // Tells the renderer to translate the page contents from one language to | 314 // Tells the renderer to translate the page contents from one language to |
288 // another. | 315 // another. |
289 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, | 316 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, |
290 int /* page id */, | 317 int /* page id */, |
291 std::string, /* the script injected in the page */ | 318 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. | 621 // a secure origin by a security policy. The page may appear incomplete. |
595 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) | 622 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) |
596 | 623 |
597 // Message sent from renderer to the browser when the element that is focused | 624 // 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. | 625 // and currently accepts keyboard input inside the webpage has been touched. |
599 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) | 626 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) |
600 | 627 |
601 // Suggest results ----------------------------------------------------------- | 628 // Suggest results ----------------------------------------------------------- |
602 | 629 |
603 // Sent by the Instant preview to populate the omnibox with query suggestions. | 630 // Sent by the Instant preview to populate the omnibox with query suggestions. |
604 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions, | 631 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions, |
605 int /* page_id */, | 632 int /* page_id */, |
606 std::vector<string16> /* suggestions */, | 633 std::vector<InstantSuggestion> /* suggestions */) |
607 InstantCompleteBehavior /* behavior */) | |
608 | 634 |
609 // Sent by the Instant preview indicating whether the page supports the Instant | 635 // Sent by the Instant preview indicating whether the page supports the Instant |
610 // API or not (http://dev.chromium.org/searchbox). | 636 // API or not (http://dev.chromium.org/searchbox). |
611 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, | 637 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, |
612 int /* page_id */, | 638 int /* page_id */, |
613 bool /* result */) | 639 bool /* result */) |
614 | 640 |
| 641 // Sent by the Instant preview asking to resize itself to the given height. |
| 642 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetInstantPreviewHeight, |
| 643 int /* page_id */, |
| 644 int /* height */, |
| 645 InstantSizeUnits /* units */) |
| 646 |
615 // The currently displayed PDF has an unsupported feature. | 647 // The currently displayed PDF has an unsupported feature. |
616 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) | 648 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) |
617 | 649 |
618 // This message indicates the error appeared in the frame. | 650 // This message indicates the error appeared in the frame. |
619 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, | 651 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, |
620 int /* error */) | 652 int /* error */) |
621 | 653 |
622 // This message indicates the monitored frame loading had completed. | 654 // This message indicates the monitored frame loading had completed. |
623 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) | 655 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) |
624 | 656 |
(...skipping 10 matching lines...) Expand all Loading... |
635 // previous SetCookie message to be processed. | 667 // previous SetCookie message to be processed. |
636 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 668 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
637 GURL /* url */, | 669 GURL /* url */, |
638 GURL /* first_party_for_cookies */, | 670 GURL /* first_party_for_cookies */, |
639 std::string /* cookies */) | 671 std::string /* cookies */) |
640 | 672 |
641 // Provide the browser process with current renderer framerate. | 673 // Provide the browser process with current renderer framerate. |
642 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 674 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
643 int /* routing id */, | 675 int /* routing id */, |
644 float /* frames per second */) | 676 float /* frames per second */) |
OLD | NEW |