| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "components/constrained_window/native_web_contents_modal_dialog_manager
_views.h" | 5 #include "components/constrained_window/native_web_contents_modal_dialog_manager
_views.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "components/constrained_window/constrained_window_views.h" | 9 #include "components/constrained_window/constrained_window_views.h" |
| 10 #include "components/web_modal/web_contents_modal_dialog_host.h" | 10 #include "components/web_modal/web_contents_modal_dialog_host.h" |
| 11 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 11 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 12 #include "ui/gfx/geometry/point.h" | 12 #include "ui/gfx/geometry/point.h" |
| 13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 #include "ui/views/border.h" | 14 #include "ui/views/border.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 #include "ui/views/widget/widget_delegate.h" | 16 #include "ui/views/widget/widget_delegate.h" |
| 17 #include "ui/views/window/dialog_delegate.h" | 17 #include "ui/views/window/dialog_delegate.h" |
| 18 #include "ui/views/window/non_client_view.h" | 18 #include "ui/views/window/non_client_view.h" |
| 19 | 19 |
| 20 #if defined(USE_AURA) | 20 #if defined(USE_AURA) |
| 21 #include "ui/aura/client/aura_constants.h" | 21 #include "ui/aura/client/aura_constants.h" // nogncheck |
| 22 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" // nogncheck |
| 23 #include "ui/wm/core/visibility_controller.h" | 23 #include "ui/wm/core/visibility_controller.h" // nogncheck |
| 24 #include "ui/wm/core/window_animations.h" | 24 #include "ui/wm/core/window_animations.h" // nogncheck |
| 25 #include "ui/wm/core/window_modality_controller.h" | 25 #include "ui/wm/core/window_modality_controller.h" // nogncheck |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 using web_modal::SingleWebContentsDialogManager; | 28 using web_modal::SingleWebContentsDialogManager; |
| 29 using web_modal::SingleWebContentsDialogManagerDelegate; | 29 using web_modal::SingleWebContentsDialogManagerDelegate; |
| 30 using web_modal::WebContentsModalDialogHost; | 30 using web_modal::WebContentsModalDialogHost; |
| 31 using web_modal::ModalDialogHostObserver; | 31 using web_modal::ModalDialogHostObserver; |
| 32 | 32 |
| 33 namespace constrained_window { | 33 namespace constrained_window { |
| 34 | 34 |
| 35 NativeWebContentsModalDialogManagerViews:: | 35 NativeWebContentsModalDialogManagerViews:: |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 #if defined(USE_AURA) | 225 #if defined(USE_AURA) |
| 226 shown_widgets_.erase(widget); | 226 shown_widgets_.erase(widget); |
| 227 #endif | 227 #endif |
| 228 | 228 |
| 229 // Will cause this object to be deleted. | 229 // Will cause this object to be deleted. |
| 230 native_delegate_->WillClose(widget->GetNativeWindow()); | 230 native_delegate_->WillClose(widget->GetNativeWindow()); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace constrained_window | 233 } // namespace constrained_window |
| OLD | NEW |