Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: chrome/common/render_messages.h

Issue 10809063: Adding Javascript support for the Extended Searchbox API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) 621 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
585 622
586 // Sent when the renderer was prevented from running insecure content in 623 // Sent when the renderer was prevented from running insecure content in
587 // a secure origin by a security policy. The page may appear incomplete. 624 // a secure origin by a security policy. The page may appear incomplete.
588 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) 625 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
589 626
590 // Message sent from renderer to the browser when the element that is focused 627 // Message sent from renderer to the browser when the element that is focused
591 // and currently accepts keyboard input inside the webpage has been touched. 628 // and currently accepts keyboard input inside the webpage has been touched.
592 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) 629 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched)
593 630
594 // Suggest results ----------------------------------------------------------- 631 // Sent by the Instant preview to populate the omnibox with query suggestions.
632 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions,
633 int /* page_id */,
634 std::vector<InstantSuggestion> /* suggestions */)
595 635
596 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions, 636 // Sent by the Instant preview indicating whether the page supports the Instant
597 int32 /* page_id */, 637 // API or not (http://dev.chromium.org/searchbox).
598 std::vector<std::string> /* suggestions */, 638 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
599 InstantCompleteBehavior) 639 int /* page_id */,
640 bool /* result */)
600 641
601 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, 642 // Sent by the Instant preview asking to resize itself to the given height.
602 int32 /* page_id */, 643 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetInstantPreviewHeight,
603 bool /* result */) 644 int /* page_id */,
645 int /* height */,
646 InstantSizeUnits /* units */)
604 647
605 // The currently displayed PDF has an unsupported feature. 648 // The currently displayed PDF has an unsupported feature.
606 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) 649 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
607 650
608 // This message indicates the error appeared in the frame. 651 // This message indicates the error appeared in the frame.
609 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, 652 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
610 int /* error */) 653 int /* error */)
611 654
612 // This message indicates the monitored frame loading had completed. 655 // This message indicates the monitored frame loading had completed.
613 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) 656 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted)
(...skipping 11 matching lines...) Expand all
625 // previous SetCookie message to be processed. 668 // previous SetCookie message to be processed.
626 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 669 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
627 GURL /* url */, 670 GURL /* url */,
628 GURL /* first_party_for_cookies */, 671 GURL /* first_party_for_cookies */,
629 std::string /* cookies */) 672 std::string /* cookies */)
630 673
631 // Provide the browser process with current renderer framerate. 674 // Provide the browser process with current renderer framerate.
632 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 675 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
633 int /* routing id */, 676 int /* routing id */,
634 float /* frames per second */) 677 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698