diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 14:06:34 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 14:06:34 +0000 |
commit | b627d9acccce5b97f59d34c94c2e464848683df1 (patch) | |
tree | 152d1538f01caeb91b737ac12211515ebebbe172 /content/browser/javascript_dialogs.h | |
parent | 04bf01c33e2fc63b4425e26be3dcd3ef1f3a0f35 (diff) | |
download | chromium_src-b627d9acccce5b97f59d34c94c2e464848683df1.zip chromium_src-b627d9acccce5b97f59d34c94c2e464848683df1.tar.gz chromium_src-b627d9acccce5b97f59d34c94c2e464848683df1.tar.bz2 |
Remove Profiles from JavaScript dialogs.
BUG=84601
TEST=no change
Review URL: http://codereview.chromium.org/7253019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/javascript_dialogs.h')
-rw-r--r-- | content/browser/javascript_dialogs.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/content/browser/javascript_dialogs.h b/content/browser/javascript_dialogs.h index caeac36..20de44b 100644 --- a/content/browser/javascript_dialogs.h +++ b/content/browser/javascript_dialogs.h @@ -51,17 +51,22 @@ class JavaScriptDialogDelegate { // dialogs. class JavaScriptDialogCreator { public: + enum TitleType { + DIALOG_TITLE_NONE, + DIALOG_TITLE_PLAIN_STRING, + DIALOG_TITLE_FORMATTED_URL + }; + // Displays a JavaScript dialog. |did_suppress_message| will not be nil; if // |true| is returned in it, the caller will handle faking the reply. - // TODO(avi): Remove Profile from this call; http://crbug.com/84601 virtual void RunJavaScriptDialog(JavaScriptDialogDelegate* delegate, - const GURL& frame_url, + TitleType title_type, + const string16& title, int dialog_flags, const string16& message_text, const string16& default_prompt_text, IPC::Message* reply_message, - bool* did_suppress_message, - Profile* profile) = 0; + bool* did_suppress_message) = 0; // Displays a dialog asking the user if they want to leave a page. virtual void RunBeforeUnloadDialog(JavaScriptDialogDelegate* delegate, |