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

Unified Diff: chrome/renderer/render_view.cc

Issue 3312017: Plumbs through window.chrome.setSuggestResult. (Closed)
Patch Set: more comments Created 10 years, 3 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/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 0c2eb5a73dfd7289b84bf4a361753179386b4972..652059dcf315ceff05069445fc276d557d028f9b 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -4056,6 +4056,11 @@ WebFrame* RenderView::GetChildFrame(const std::wstring& xpath) const {
return frame;
}
+void RenderView::SetSuggestResult(const std::string& suggest) {
+ if (!suggest.empty())
+ Send(new ViewHostMsg_SetSuggestResult(routing_id_, page_id_, suggest));
+}
+
void RenderView::EvaluateScript(const std::wstring& frame_xpath,
const std::wstring& script) {
WebFrame* web_frame = GetChildFrame(frame_xpath);

Powered by Google App Engine
This is Rietveld 408576698