| 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 COMPONENTS_APP_MODAL_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ | 5 #ifndef COMPONENTS_APP_MODAL_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ |
| 6 #define COMPONENTS_APP_MODAL_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ | 6 #define COMPONENTS_APP_MODAL_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "components/app_modal/native_app_modal_dialog.h" | 11 #include "components/app_modal/native_app_modal_dialog.h" |
| 12 #include "ui/views/window/dialog_delegate.h" | 12 #include "ui/views/window/dialog_delegate.h" |
| 13 | 13 |
| 14 class JavaScriptAppModalDialog; | |
| 15 | |
| 16 namespace views { | 14 namespace views { |
| 17 class MessageBoxView; | 15 class MessageBoxView; |
| 18 } | 16 } |
| 19 | 17 |
| 20 namespace app_modal { | 18 namespace app_modal { |
| 21 | 19 |
| 20 class JavaScriptAppModalDialog; |
| 21 |
| 22 class JavaScriptAppModalDialogViews : public NativeAppModalDialog, | 22 class JavaScriptAppModalDialogViews : public NativeAppModalDialog, |
| 23 public views::DialogDelegate { | 23 public views::DialogDelegate { |
| 24 public: | 24 public: |
| 25 explicit JavaScriptAppModalDialogViews(JavaScriptAppModalDialog* parent); | 25 explicit JavaScriptAppModalDialogViews(JavaScriptAppModalDialog* parent); |
| 26 ~JavaScriptAppModalDialogViews() override; | 26 ~JavaScriptAppModalDialogViews() override; |
| 27 | 27 |
| 28 // Overridden from NativeAppModalDialog: | 28 // Overridden from NativeAppModalDialog: |
| 29 int GetAppModalDialogButtons() const override; | 29 int GetAppModalDialogButtons() const override; |
| 30 void ShowAppModalDialog() override; | 30 void ShowAppModalDialog() override; |
| 31 void ActivateAppModalDialog() override; | 31 void ActivateAppModalDialog() override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 57 | 57 |
| 58 // The message box view whose commands we handle. | 58 // The message box view whose commands we handle. |
| 59 views::MessageBoxView* message_box_view_; | 59 views::MessageBoxView* message_box_view_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViews); | 61 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViews); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace app_modal | 64 } // namespace app_modal |
| 65 | 65 |
| 66 #endif // COMPONENTS_APP_MODAL_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ | 66 #endif // COMPONENTS_APP_MODAL_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_H_ |
| OLD | NEW |