| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELL_JAVASCRIPT_DIALOG_H_ | 5 #ifndef CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ |
| 6 #define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ | 6 #define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/public/browser/javascript_dialogs.h" | 9 #include "content/public/browser/javascript_dialogs.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // Called to cancel a dialog mid-flight. | 35 // Called to cancel a dialog mid-flight. |
| 36 void Cancel(); | 36 void Cancel(); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 ShellJavaScriptDialogCreator* creator_; | 39 ShellJavaScriptDialogCreator* creator_; |
| 40 JavaScriptDialogCreator::DialogClosedCallback callback_; | 40 JavaScriptDialogCreator::DialogClosedCallback callback_; |
| 41 | 41 |
| 42 #if defined(OS_MACOSX) | 42 #if defined(OS_MACOSX) |
| 43 ShellJavaScriptDialogHelper* helper_; // owned | 43 ShellJavaScriptDialogHelper* helper_; // owned |
| 44 NSAlert* alert_; // weak, owned by |helper_|. | 44 NSAlert* alert_; // weak, owned by |helper_|. |
| 45 #endif // defined(OS_MACOSX) | 45 #elif defined(OS_WIN) |
| 46 ui::JavascriptMessageType message_type_; |
| 47 HWND dlg_win_; |
| 48 string16 message_text_; |
| 49 string16 default_prompt_text_; |
| 50 static INT_PTR CALLBACK DialogProc(HWND hDlg, UINT msg, WPARAM wParam, |
| 51 LPARAM lParam); |
| 52 #endif |
| 46 | 53 |
| 47 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialog); | 54 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialog); |
| 48 }; | 55 }; |
| 49 | 56 |
| 50 } // namespace content | 57 } // namespace content |
| 51 | 58 |
| 52 #endif // CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ | 59 #endif // CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ |
| OLD | NEW |