| 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 #include "components/constrained_window/constrained_window_views.h" | 5 #include "components/constrained_window/constrained_window_views.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" |
| 9 #include "components/constrained_window/constrained_window_views_client.h" | 11 #include "components/constrained_window/constrained_window_views_client.h" |
| 10 #include "components/guest_view/browser/guest_view_base.h" | 12 #include "components/guest_view/browser/guest_view_base.h" |
| 11 #include "components/web_modal/web_contents_modal_dialog_host.h" | 13 #include "components/web_modal/web_contents_modal_dialog_host.h" |
| 12 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 14 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 13 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" | 15 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" |
| 14 #include "ui/views/border.h" | 16 #include "ui/views/border.h" |
| 15 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
| 16 #include "ui/views/widget/widget_observer.h" | 18 #include "ui/views/widget/widget_observer.h" |
| 17 #include "ui/views/window/dialog_delegate.h" | 19 #include "ui/views/window/dialog_delegate.h" |
| 18 | 20 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 DCHECK_EQ(parent_view, host->GetHostView()); | 186 DCHECK_EQ(parent_view, host->GetHostView()); |
| 185 ModalDialogHostObserver* dialog_host_observer = | 187 ModalDialogHostObserver* dialog_host_observer = |
| 186 new WidgetModalDialogHostObserverViews( | 188 new WidgetModalDialogHostObserverViews( |
| 187 host, widget, kWidgetModalDialogHostObserverViewsKey); | 189 host, widget, kWidgetModalDialogHostObserverViewsKey); |
| 188 dialog_host_observer->OnPositionRequiresUpdate(); | 190 dialog_host_observer->OnPositionRequiresUpdate(); |
| 189 } | 191 } |
| 190 return widget; | 192 return widget; |
| 191 } | 193 } |
| 192 | 194 |
| 193 } // namespace constrained window | 195 } // namespace constrained window |
| OLD | NEW |