[Extensions UI Mac] Make extensions overflow menu keyboard-accessible
[chromium-blink-merge.git] / components / constrained_window / constrained_window_views_client.h
blobde58b2cb0f408360912d802167fd5098a72a1fce
1 // Copyright 2014 The Chromium Authors. All rights reserved.
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"
10 namespace content {
11 class WebContents;
14 namespace web_modal {
15 class ModalDialogHost;
18 namespace constrained_window {
20 class ConstrainedWindowViewsClient {
21 public:
22 virtual ~ConstrainedWindowViewsClient() {}
24 // Returns the modal window host for the |parent| native window.
25 virtual web_modal::ModalDialogHost* GetModalDialogHost(
26 gfx::NativeWindow parent) = 0;
28 // Returns the native view in |window| appropriate for positioning dialogs.
29 virtual gfx::NativeView GetDialogHostView(gfx::NativeWindow window) = 0;
32 } // namespace constrained window
34 #endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_