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