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

Unified 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: Removing clear method. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/instant_types.cc ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 51094f663541478a86bdd1a49e4f17e00aba75a7..70a2aae4afe8b3b7d89b470ef7dd8f895f0e1492 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -115,6 +115,8 @@ struct ParamTraits<ContentSettingsPattern> {
IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value)
IPC_ENUM_TRAITS(InstantCompleteBehavior)
+IPC_ENUM_TRAITS(InstantSizeUnits)
+IPC_ENUM_TRAITS(InstantSuggestionType)
IPC_ENUM_TRAITS(search_provider::OSDDType)
IPC_ENUM_TRAITS(search_provider::InstallState)
IPC_ENUM_TRAITS(TranslateErrors::Type)
@@ -143,6 +145,20 @@ IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
IPC_STRUCT_TRAITS_MEMBER(incognito)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(InstantAutocompleteResult)
+ IPC_STRUCT_TRAITS_MEMBER(provider)
+ IPC_STRUCT_TRAITS_MEMBER(is_search)
+ IPC_STRUCT_TRAITS_MEMBER(contents)
+ IPC_STRUCT_TRAITS_MEMBER(destination_url)
+ IPC_STRUCT_TRAITS_MEMBER(relevance)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
+ IPC_STRUCT_TRAITS_MEMBER(text)
+ IPC_STRUCT_TRAITS_MEMBER(behavior)
+ IPC_STRUCT_TRAITS_MEMBER(type)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
IPC_STRUCT_TRAITS_MEMBER(image_rules)
IPC_STRUCT_TRAITS_MEMBER(script_rules)
@@ -271,14 +287,25 @@ IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange,
bool /* verbatim */,
size_t /* selection_start */,
size_t /* selection_end */)
+
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit,
string16 /* value */)
+
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCancel,
string16 /* value */)
+
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxResize,
gfx::Rect /* search_box_bounds */)
+
IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxAutocompleteResults,
+ std::vector<InstantAutocompleteResult>
+ /* native_suggestions */)
+
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxKeyPress,
+ int /* keycode */)
+
// Toggles visual muting of the render view area. This is on when a constrained
// window is showing.
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
@@ -601,10 +628,9 @@ IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched)
// Suggest results -----------------------------------------------------------
// Sent by the Instant preview to populate the omnibox with query suggestions.
-IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions,
+IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetSuggestions,
int /* page_id */,
- std::vector<string16> /* suggestions */,
- InstantCompleteBehavior /* behavior */)
+ std::vector<InstantSuggestion> /* suggestions */)
// Sent by the Instant preview indicating whether the page supports the Instant
// API or not (http://dev.chromium.org/searchbox).
@@ -612,6 +638,12 @@ IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
int /* page_id */,
bool /* result */)
+// Sent by the Instant preview asking to resize itself to the given height.
+IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetInstantPreviewHeight,
+ int /* page_id */,
+ int /* height */,
+ InstantSizeUnits /* units */)
+
// The currently displayed PDF has an unsupported feature.
IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature)
« no previous file with comments | « chrome/common/instant_types.cc ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698