[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / components / constrained_window / constrained_window_views_client.h
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.
4
5 #ifndef COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
6 #define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
7
8 #include "ui/gfx/native_widget_types.h"
9
10 namespace web_modal {
11 class ModalDialogHost;
12 }
13
14 namespace constrained_window {
15
16 class ConstrainedWindowViewsClient {
17  public:
18   virtual ~ConstrainedWindowViewsClient() {}
19
20   // Returns the modal window host for the |parent| native window.
21   virtual web_modal::ModalDialogHost* GetModalDialogHost(
22       gfx::NativeWindow parent) = 0;
23
24   // Returns the native view in |window| appropriate for positioning dialogs.
25   virtual gfx::NativeView GetDialogHostView(gfx::NativeWindow window) = 0;
26 };
27
28 }  // namespace constrained window
29
30 #endif  // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_