constrained_window_views_client.h 958 B

123456789101112131415161718192021222324252627282930
  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.
  4. #ifndef COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
  5. #define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
  6. #include "ui/gfx/native_widget_types.h"
  7. namespace web_modal {
  8. class ModalDialogHost;
  9. }
  10. namespace constrained_window {
  11. class ConstrainedWindowViewsClient {
  12. public:
  13. virtual ~ConstrainedWindowViewsClient() {}
  14. // Returns the modal window host for the |parent| native window.
  15. virtual web_modal::ModalDialogHost* GetModalDialogHost(
  16. gfx::NativeWindow parent) = 0;
  17. // Returns the native view in |window| appropriate for positioning dialogs.
  18. virtual gfx::NativeView GetDialogHostView(gfx::NativeWindow window) = 0;
  19. };
  20. } // namespace constrained window
  21. #endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_