Commit 8bc3914c authored by manuk's avatar manuk Committed by Commit Bot

[chrome://omnibox] Fix case typo HandleNewAutocompleteResponse.

Replaced handleNewAutocompleteResponse with
HandleNewAutocompleteResponse in the mojom and cpp files. Retained lower
case in the JS file.

Bug: 891303
Change-Id: I0399aed03bc857c28452162d2a783d4b989843d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724861
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682292}
parent 84b4306c
...@@ -65,7 +65,9 @@ struct OmniboxResponse { ...@@ -65,7 +65,9 @@ struct OmniboxResponse {
}; };
interface OmniboxPageHandler { interface OmniboxPageHandler {
// Registers the webui page.
SetClientPage(OmniboxPage page); SetClientPage(OmniboxPage page);
// Prompts a autocopmlete controller to process an omnibox query.
StartOmniboxQuery(string input_string, StartOmniboxQuery(string input_string,
bool reset_autocomplete_controller, bool reset_autocomplete_controller,
int32 cursor_position, int32 cursor_position,
...@@ -77,8 +79,15 @@ interface OmniboxPageHandler { ...@@ -77,8 +79,15 @@ interface OmniboxPageHandler {
}; };
interface OmniboxPage { interface OmniboxPage {
handleNewAutocompleteResponse(OmniboxResponse response, // Notifies the page of an omnibox response from a autocomplete
bool isPageController); // controller. |is_page_controller| indicates wether the response
HandleNewAutocompleteQuery(bool isPageController, string input_text); // originates from a query initiated from the page via
// |StartOmniboxQuery| or from the browser omnibox.
HandleNewAutocompleteResponse(OmniboxResponse response,
bool is_page_controller);
// Notifies the page a new omnibox query has begun.
HandleNewAutocompleteQuery(bool is_page_controller, string input_text);
// Asyncronously notifies the page of the image data URLs for previous omnibox
// responses.
HandleAnswerImageData(string image_url, string image_data); HandleAnswerImageData(string image_url, string image_data);
}; };
...@@ -296,7 +296,7 @@ void OmniboxPageHandler::OnOmniboxResultChanged( ...@@ -296,7 +296,7 @@ void OmniboxPageHandler::OnOmniboxResultChanged(
image_urls.push_back(result_by_provider.results[j]->image); image_urls.push_back(result_by_provider.results[j]->image);
} }
page_->handleNewAutocompleteResponse(std::move(response), page_->HandleNewAutocompleteResponse(std::move(response),
controller == controller_.get()); controller == controller_.get());
// Fill in image data // Fill in image data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment