window_occlusion_win.h 802 B

1234567891011121314151617181920212223242526
  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 UI_AURA_EXTRA_WINDOW_OCCLUSION_WIN_H_
  5. #define UI_AURA_EXTRA_WINDOW_OCCLUSION_WIN_H_
  6. #include <vector>
  7. #include "base/containers/flat_map.h"
  8. #include "ui/aura/window.h"
  9. #include "ui/aura/window_tree_host.h"
  10. #include "ui/aura_extra/aura_extra_export.h"
  11. namespace aura_extra {
  12. // Computes the native window occlusion status for each aura::WindowTreeHost in
  13. // |windows|.
  14. AURA_EXTRA_EXPORT
  15. base::flat_map<aura::WindowTreeHost*, aura::Window::OcclusionState>
  16. ComputeNativeWindowOcclusionStatus(
  17. const std::vector<aura::WindowTreeHost*>& windows);
  18. } // namespace aura_extra
  19. #endif // UI_AURA_EXTRA_WINDOW_OCCLUSION_WIN_H_