| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "components/app_modal/native_app_modal_dialog.h" | 13 #include "components/app_modal/native_app_modal_dialog.h" |
| 14 | 14 |
| 15 class AppModalDialogHelper; | 15 class AppModalDialogHelper; |
| 16 | 16 |
| 17 namespace app_modal { |
| 18 class JavaScriptAppModalDialog; |
| 19 } |
| 20 |
| 17 #if __OBJC__ | 21 #if __OBJC__ |
| 18 @class NSAlert; | 22 @class NSAlert; |
| 19 @class JavaScriptAppModalDialogHelper; | 23 @class JavaScriptAppModalDialogHelper; |
| 20 #else | 24 #else |
| 21 class NSAlert; | 25 class NSAlert; |
| 22 class JavaScriptAppModalDialogHelper; | 26 class JavaScriptAppModalDialogHelper; |
| 23 #endif | 27 #endif |
| 24 | 28 |
| 25 class JavaScriptAppModalDialogCocoa : public app_modal::NativeAppModalDialog { | 29 class JavaScriptAppModalDialogCocoa : public app_modal::NativeAppModalDialog { |
| 26 public: | 30 public: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 50 | 54 |
| 51 // Created in the constructor and destroyed in the destructor. | 55 // Created in the constructor and destroyed in the destructor. |
| 52 base::scoped_nsobject<JavaScriptAppModalDialogHelper> helper_; | 56 base::scoped_nsobject<JavaScriptAppModalDialogHelper> helper_; |
| 53 | 57 |
| 54 bool is_showing_; | 58 bool is_showing_; |
| 55 | 59 |
| 56 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogCocoa); | 60 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogCocoa); |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 #endif // CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ | 63 #endif // CHROME_BROWSER_UI_COCOA_JAVASCRIPT_APP_MODAL_DIALOG_COCOA_H_ |
| OLD | NEW |