1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
6 #define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
8 #include "ui/gfx/native_widget_types.h"
11 class ModalDialogHost;
14 namespace constrained_window {
16 class ConstrainedWindowViewsClient {
18 virtual ~ConstrainedWindowViewsClient() {}
20 // Returns the modal window host for the |parent| native window.
21 virtual web_modal::ModalDialogHost* GetModalDialogHost(
22 gfx::NativeWindow parent) = 0;
24 // Returns the native view in |window| appropriate for positioning dialogs.
25 virtual gfx::NativeView GetDialogHostView(gfx::NativeWindow window) = 0;
28 } // namespace constrained window
30 #endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_