| 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/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "components/app_modal/native_app_modal_dialog.h" | 12 #include "components/app_modal/native_app_modal_dialog.h" |
| 12 | 13 |
| 13 class AppModalDialogHelper; | 14 class AppModalDialogHelper; |
| 14 | 15 |
| 15 #if __OBJC__ | 16 #if __OBJC__ |
| 16 @class NSAlert; | 17 @class NSAlert; |
| 17 @class JavaScriptAppModalDialogHelper; | 18 @class JavaScriptAppModalDialogHelper; |
| 18 #else | 19 #else |
| 19 class NSAlert; | 20 class NSAlert; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 | 49 |
| 49 // Created in the constructor and destroyed in the destructor. | 50 // Created in the constructor and destroyed in the destructor. |
| 50 base::scoped_nsobject<JavaScriptAppModalDialogHelper> helper_; | 51 base::scoped_nsobject<JavaScriptAppModalDialogHelper> helper_; |
| 51 | 52 |
| 52 bool is_showing_; | 53 bool is_showing_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogCocoa); | 55 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogCocoa); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 #endif // CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ | 58 #endif // CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ |
| OLD | NEW |