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

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: Adding missing file from last upload. 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
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 51094f663541478a86bdd1a49e4f17e00aba75a7..2703289045775baaee6e9c3ed154570c0b4db5b6 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,36 @@ 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_SearchBoxInstantAutocompleteResults,
sreeram 2012/08/09 22:13:51 Drop the "Instant" from the IPC name: ChromeViewMs
Shishir 2012/08/10 18:16:57 Done.
+ std::vector<InstantAutocompleteResult>
+ /* native_suggestions */)
+
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxKeyPress,
+ int /* keycode */)
+
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxLastQuery,
+ string16 /* last_query */)
+
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxCurrentURL,
+ string16 /* current_url */)
+
+IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxFocused)
+
+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.
+
+
// Toggles visual muting of the render view area. This is on when a constrained
// window is showing.
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
@@ -601,10 +639,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 +649,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)

Powered by Google App Engine
This is Rietveld 408576698