lock_screen_widget_factory.h 913 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2018 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 ASH_PUBLIC_CPP_LOCK_SCREEN_WIDGET_FACTORY_H_
  5. #define ASH_PUBLIC_CPP_LOCK_SCREEN_WIDGET_FACTORY_H_
  6. #include <memory>
  7. #include "ash/public/cpp/ash_public_export.h"
  8. namespace aura {
  9. class Window;
  10. }
  11. namespace views {
  12. class View;
  13. class Widget;
  14. }
  15. namespace ash {
  16. // Creates a widget shown on the lock-screen. The widget is configured such
  17. // that the caller owns it (InitParams::WIDGET_OWNS_NATIVE_WIDGET). |parent|
  18. // should only be supplied if called from ash, otherwise use null to get the
  19. // right container.
  20. ASH_PUBLIC_EXPORT std::unique_ptr<views::Widget> CreateLockScreenWidget(
  21. aura::Window* parent,
  22. std::unique_ptr<views::View> contents_view);
  23. } // namespace ash
  24. #endif // ASH_PUBLIC_CPP_LOCK_SCREEN_WIDGET_FACTORY_H_