| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_APP_MODAL_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_H_ |
| 6 #define CHROME_BROWSER_APP_MODAL_DIALOG_H_ | 6 #define CHROME_BROWSER_APP_MODAL_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "chrome/common/notification_observer.h" | 11 #include "chrome/common/notification_observer.h" |
| 12 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 class JavascriptMessageBoxDialog; | 15 class JavascriptMessageBoxDialog; |
| 16 typedef JavascriptMessageBoxDialog* NativeDialog; | 16 typedef JavascriptMessageBoxDialog* NativeDialog; |
| 17 #elif defined(OS_LINUX) | 17 #elif defined(USE_X11) |
| 18 typedef struct _GtkWidget GtkWidget; | 18 typedef struct _GtkWidget GtkWidget; |
| 19 typedef GtkWidget* NativeDialog; | 19 typedef GtkWidget* NativeDialog; |
| 20 #elif defined(OS_MACOSX) | 20 #elif defined(OS_MACOSX) |
| 21 typedef void* NativeDialog; | 21 typedef void* NativeDialog; |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 class TabContents; | 24 class TabContents; |
| 25 namespace IPC { | 25 namespace IPC { |
| 26 class Message; | 26 class Message; |
| 27 } | 27 } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 std::wstring title_; | 108 std::wstring title_; |
| 109 int dialog_flags_; | 109 int dialog_flags_; |
| 110 std::wstring message_text_; | 110 std::wstring message_text_; |
| 111 std::wstring default_prompt_text_; | 111 std::wstring default_prompt_text_; |
| 112 bool display_suppress_checkbox_; | 112 bool display_suppress_checkbox_; |
| 113 bool is_before_unload_dialog_; | 113 bool is_before_unload_dialog_; |
| 114 IPC::Message* reply_msg_; | 114 IPC::Message* reply_msg_; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 #endif // #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_H_ | 117 #endif // #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_H_ |
| OLD | NEW |