Index: content/shell/shell_javascript_dialog.h |
diff --git a/content/shell/shell_javascript_dialog.h b/content/shell/shell_javascript_dialog.h |
index 12dd8823d65c349a7677bd550e8c0507fd529d22..ad97536f10464ab2b312037d086cd3114eba67cf 100644 |
--- a/content/shell/shell_javascript_dialog.h |
+++ b/content/shell/shell_javascript_dialog.h |
@@ -6,6 +6,9 @@ |
#define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ |
#include "content/public/browser/javascript_dialogs.h" |
+#if defined(OS_LINUX) |
jochen (gone - plz use gerrit)
2012/07/30 07:32:23
should be TOOLKIT_GTK?
also, please add an empty
Shouqun Liu
2012/07/30 08:08:44
Done.
|
+#include "ui/base/gtk/gtk_signal.h" |
+#endif |
#if defined(OS_MACOSX) |
#if __OBJC__ |
@@ -23,6 +26,7 @@ class ShellJavaScriptDialog { |
public: |
ShellJavaScriptDialog( |
ShellJavaScriptDialogCreator* creator, |
+ gfx::NativeWindow parent_window, |
JavaScriptMessageType message_type, |
const string16& message_text, |
const string16& default_prompt_text, |
@@ -45,6 +49,10 @@ class ShellJavaScriptDialog { |
string16 default_prompt_text_; |
static INT_PTR CALLBACK DialogProc(HWND dialog, UINT message, WPARAM wparam, |
LPARAM lparam); |
+#elif defined(OS_LINUX) |
+ GtkWidget* gtk_dialog_; |
+ gfx::NativeWindow parent_window_; |
+ CHROMEGTK_CALLBACK_1(ShellJavaScriptDialog, void, OnResponse, int); |
#endif |
DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialog); |