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 CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "components/app_modal_dialogs/native_app_modal_dialog.h" | 11 #include "components/app_modal/native_app_modal_dialog.h" |
12 | 12 |
13 #if __OBJC__ | 13 #if __OBJC__ |
14 @class NSAlert; | 14 @class NSAlert; |
15 @class JavaScriptAppModalDialogHelper; | 15 @class JavaScriptAppModalDialogHelper; |
16 #else | 16 #else |
17 class NSAlert; | 17 class NSAlert; |
18 class JavaScriptAppModalDialogHelper; | 18 class JavaScriptAppModalDialogHelper; |
19 #endif | 19 #endif |
20 | 20 |
21 class JavaScriptAppModalDialogCocoa : public NativeAppModalDialog { | 21 class JavaScriptAppModalDialogCocoa : public NativeAppModalDialog { |
(...skipping 17 matching lines...) Expand all Loading... |
39 | 39 |
40 scoped_ptr<JavaScriptAppModalDialog> dialog_; | 40 scoped_ptr<JavaScriptAppModalDialog> dialog_; |
41 | 41 |
42 // Created in the constructor and destroyed in the destructor. | 42 // Created in the constructor and destroyed in the destructor. |
43 base::scoped_nsobject<JavaScriptAppModalDialogHelper> helper_; | 43 base::scoped_nsobject<JavaScriptAppModalDialogHelper> helper_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogCocoa); | 45 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogCocoa); |
46 }; | 46 }; |
47 | 47 |
48 #endif // CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ | 48 #endif // CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ |
OLD | NEW |