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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 39163: Make JavaScript alerts reflect the URL of the frame they came from, not the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // A file chooser should be shown. 272 // A file chooser should be shown.
273 virtual void RunFileChooser(bool multiple_files, 273 virtual void RunFileChooser(bool multiple_files,
274 const std::wstring& title, 274 const std::wstring& title,
275 const std::wstring& default_file, 275 const std::wstring& default_file,
276 const std::wstring& filter) { } 276 const std::wstring& filter) { }
277 277
278 // A javascript message, confirmation or prompt should be shown. 278 // A javascript message, confirmation or prompt should be shown.
279 virtual void RunJavaScriptMessage(const std::wstring& message, 279 virtual void RunJavaScriptMessage(const std::wstring& message,
280 const std::wstring& default_prompt, 280 const std::wstring& default_prompt,
281 const GURL& frame_url,
281 const int flags, 282 const int flags,
282 IPC::Message* reply_msg, 283 IPC::Message* reply_msg,
283 bool* did_suppress_message) { } 284 bool* did_suppress_message) { }
284 285
285 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 286 virtual void RunBeforeUnloadConfirm(const GURL& frame_url,
287 const std::wstring& message,
286 IPC::Message* reply_msg) { } 288 IPC::Message* reply_msg) { }
287 289
288 // Display this RenderViewHost in a modal fashion. 290 // Display this RenderViewHost in a modal fashion.
289 virtual void RunModal(IPC::Message* reply_msg) { } 291 virtual void RunModal(IPC::Message* reply_msg) { }
290 292
291 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, 293 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height,
292 const std::string& json_arguments, 294 const std::string& json_arguments,
293 IPC::Message* reply_msg) { } 295 IPC::Message* reply_msg) { }
294 296
295 // Password forms have been detected in the page. 297 // Password forms have been detected in the page.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 403
402 // A find operation in the current page completed. 404 // A find operation in the current page completed.
403 virtual void OnFindReply(int request_id, 405 virtual void OnFindReply(int request_id,
404 int number_of_matches, 406 int number_of_matches,
405 const gfx::Rect& selection_rect, 407 const gfx::Rect& selection_rect,
406 int active_match_ordinal, 408 int active_match_ordinal,
407 bool final_update) { } 409 bool final_update) { }
408 }; 410 };
409 411
410 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 412 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/tab_contents/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698