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

Side by Side Diff: chrome/browser/jsmessage_box_handler.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_JSMESSAGE_BOX_HANDLER_H_ 5 #ifndef CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_
6 #define CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_ 6 #define CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/ipc_message.h" 10 #include "chrome/common/ipc_message.h"
11 11
12 class GURL;
12 class WebContents; 13 class WebContents;
13 14
14 // Creates and runs a Javascript Message Box dialog. 15 // Creates and runs a Javascript Message Box dialog.
15 // The dialog type is specified within |dialog_flags|, the 16 // The dialog type is specified within |dialog_flags|, the
16 // default static display text is in |message_text| and if the dialog box is 17 // default static display text is in |message_text| and if the dialog box is
17 // a user input prompt() box, the default text for the text field is in 18 // a user input prompt() box, the default text for the text field is in
18 // |default_prompt_text|. The result of the operation is returned using 19 // |default_prompt_text|. The result of the operation is returned using
19 // |reply_msg|. 20 // |reply_msg|.
20 void RunJavascriptMessageBox(WebContents* web_contents, 21 void RunJavascriptMessageBox(WebContents* web_contents,
22 const GURL& frame_url,
21 int dialog_flags, 23 int dialog_flags,
22 const std::wstring& message_text, 24 const std::wstring& message_text,
23 const std::wstring& default_prompt_text, 25 const std::wstring& default_prompt_text,
24 bool display_suppress_checkbox, 26 bool display_suppress_checkbox,
25 IPC::Message* reply_msg); 27 IPC::Message* reply_msg);
26 28
27 #endif // CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_ 29 #endif // CHROME_BROWSER_JSMESSAGE_BOX_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/js_before_unload_handler_win.cc ('k') | chrome/browser/jsmessage_box_handler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698