| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_H_ |
| 6 #define CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/javascript_dialog_manager.h" | 8 #include "content/public/browser/javascript_dialog_manager.h" |
| 9 | 9 |
| 10 #if defined(TOOLKIT_GTK) | |
| 11 #include "ui/base/gtk/gtk_signal.h" | |
| 12 #endif | |
| 13 | |
| 14 #if defined(OS_MACOSX) | 10 #if defined(OS_MACOSX) |
| 15 #if __OBJC__ | 11 #if __OBJC__ |
| 16 @class ShellJavaScriptDialogHelper; | 12 @class ShellJavaScriptDialogHelper; |
| 17 #else | 13 #else |
| 18 class ShellJavaScriptDialogHelper; | 14 class ShellJavaScriptDialogHelper; |
| 19 #endif // __OBJC__ | 15 #endif // __OBJC__ |
| 20 #endif // defined(OS_MACOSX) | 16 #endif // defined(OS_MACOSX) |
| 21 | 17 |
| 22 namespace content { | 18 namespace content { |
| 23 | 19 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 | 39 |
| 44 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
| 45 ShellJavaScriptDialogHelper* helper_; // owned | 41 ShellJavaScriptDialogHelper* helper_; // owned |
| 46 #elif defined(OS_WIN) | 42 #elif defined(OS_WIN) |
| 47 JavaScriptMessageType message_type_; | 43 JavaScriptMessageType message_type_; |
| 48 HWND dialog_win_; | 44 HWND dialog_win_; |
| 49 base::string16 message_text_; | 45 base::string16 message_text_; |
| 50 base::string16 default_prompt_text_; | 46 base::string16 default_prompt_text_; |
| 51 static INT_PTR CALLBACK DialogProc(HWND dialog, UINT message, WPARAM wparam, | 47 static INT_PTR CALLBACK DialogProc(HWND dialog, UINT message, WPARAM wparam, |
| 52 LPARAM lparam); | 48 LPARAM lparam); |
| 53 #elif defined(TOOLKIT_GTK) | |
| 54 GtkWidget* gtk_dialog_; | |
| 55 gfx::NativeWindow parent_window_; | |
| 56 CHROMEGTK_CALLBACK_1(ShellJavaScriptDialog, void, OnResponse, int); | |
| 57 #endif | 49 #endif |
| 58 | 50 |
| 59 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialog); | 51 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialog); |
| 60 }; | 52 }; |
| 61 | 53 |
| 62 } // namespace content | 54 } // namespace content |
| 63 | 55 |
| 64 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_H_ | 56 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_H_ |
| OLD | NEW |