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

Unified Diff: content/shell/shell_javascript_dialog.h

Issue 10824077: Content shell/GTK: Add JavaScript dialog support. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698