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

Side by Side Diff: chrome/renderer/render_view.h

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 // Called from JavaScript window.external.AddSearchProvider() to add a 218 // Called from JavaScript window.external.AddSearchProvider() to add a
219 // keyword for a provider described in the given OpenSearch document. 219 // keyword for a provider described in the given OpenSearch document.
220 void AddSearchProvider(const std::string& url); 220 void AddSearchProvider(const std::string& url);
221 221
222 // Returns the install state for the given search provider url. 222 // Returns the install state for the given search provider url.
223 ViewHostMsg_GetSearchProviderInstallState_Params 223 ViewHostMsg_GetSearchProviderInstallState_Params
224 GetSearchProviderInstallState(WebKit::WebFrame* frame, 224 GetSearchProviderInstallState(WebKit::WebFrame* frame,
225 const std::string& url); 225 const std::string& url);
226 226
227 // Sends ViewHostMsg_SetSuggestResult to the browser.
228 void SetSuggestResult(const std::string& suggest);
229
227 // Evaluates a string of JavaScript in a particular frame. 230 // Evaluates a string of JavaScript in a particular frame.
228 void EvaluateScript(const std::wstring& frame_xpath, 231 void EvaluateScript(const std::wstring& frame_xpath,
229 const std::wstring& jscript); 232 const std::wstring& jscript);
230 233
231 // Adds the given file chooser request to the file_chooser_completion_ queue 234 // Adds the given file chooser request to the file_chooser_completion_ queue
232 // (see that var for more) and requests the chooser be displayed if there are 235 // (see that var for more) and requests the chooser be displayed if there are
233 // no other waiting items in the queue. 236 // no other waiting items in the queue.
234 // 237 //
235 // Returns true if the chooser was successfully scheduled. False means we 238 // Returns true if the chooser was successfully scheduled. False means we
236 // didn't schedule anything. 239 // didn't schedule anything.
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1331 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1329 // sections rather than throwing it randomly at the end. If you're adding a 1332 // sections rather than throwing it randomly at the end. If you're adding a
1330 // bunch of stuff, you should probably create a helper class and put your 1333 // bunch of stuff, you should probably create a helper class and put your
1331 // data and methods on that to avoid bloating RenderView more. 1334 // data and methods on that to avoid bloating RenderView more.
1332 // --------------------------------------------------------------------------- 1335 // ---------------------------------------------------------------------------
1333 1336
1334 DISALLOW_COPY_AND_ASSIGN(RenderView); 1337 DISALLOW_COPY_AND_ASSIGN(RenderView);
1335 }; 1338 };
1336 1339
1337 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1340 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698