window_finder.h 889 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_WINDOW_FINDER_H_
  5. #define ASH_PUBLIC_CPP_WINDOW_FINDER_H_
  6. #include <set>
  7. #include "ash/ash_export.h"
  8. namespace aura {
  9. class Window;
  10. }
  11. namespace gfx {
  12. class Point;
  13. }
  14. namespace ash {
  15. // Finds the topmost window at |screen_point| with ignoring |ignore|. If
  16. // overview is active when this function is called, the overview window that
  17. // contains |screen_point| will be returned. Note this overview window might not
  18. // be visibile (e.g., it represents an aura window whose window state is
  19. // MINIMIZED).
  20. ASH_EXPORT aura::Window* GetTopmostWindowAtPoint(
  21. const gfx::Point& screen_point,
  22. const std::set<aura::Window*>& ignore);
  23. } // namespace ash
  24. #endif // ASH_PUBLIC_CPP_WINDOW_FINDER_H_