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

Unified Diff: content/browser/javascript_dialogs.h

Issue 8553001: views: Add an Options enum to MessageBoxView control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding an IPC_MESSAGE_EXPORT to line 30 of param_traits_macro.h makes it link in shared build Created 9 years 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
« no previous file with comments | « chrome/browser/ui/views/user_data_dir_dialog.cc ('k') | content/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/javascript_dialogs.h
diff --git a/content/browser/javascript_dialogs.h b/content/browser/javascript_dialogs.h
index 175c1910dda88c1abe0819c152f5d134364b7636..4b1af55633bdf76bb6dc9849607de7c3c8b22481 100644
--- a/content/browser/javascript_dialogs.h
+++ b/content/browser/javascript_dialogs.h
@@ -8,6 +8,7 @@
#include "base/string16.h"
#include "content/common/content_export.h"
+#include "ui/base/javascript_message_type.h"
#include "ui/gfx/native_widget_types.h"
namespace IPC {
@@ -53,14 +54,15 @@ class JavaScriptDialogCreator {
// Displays a JavaScript dialog. |did_suppress_message| will not be nil; if
// |true| is returned in it, the caller will handle faking the reply.
- virtual void RunJavaScriptDialog(JavaScriptDialogDelegate* delegate,
- 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) = 0;
+ virtual void RunJavaScriptDialog(
+ JavaScriptDialogDelegate* delegate,
+ TitleType title_type,
+ const string16& title,
+ ui::JavascriptMessageType javascript_message_type,
+ const string16& message_text,
+ const string16& default_prompt_text,
+ IPC::Message* reply_message,
+ bool* did_suppress_message) = 0;
// Displays a dialog asking the user if they want to leave a page.
virtual void RunBeforeUnloadDialog(JavaScriptDialogDelegate* delegate,
« no previous file with comments | « chrome/browser/ui/views/user_data_dir_dialog.cc ('k') | content/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698