display_util.h 727 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 ASH_KEYBOARD_UI_DISPLAY_UTIL_H_
  5. #define ASH_KEYBOARD_UI_DISPLAY_UTIL_H_
  6. #include "ui/aura/window.h"
  7. #include "ui/display/display.h"
  8. namespace keyboard {
  9. // Helper class for querying information about the screen.
  10. class DisplayUtil {
  11. public:
  12. DisplayUtil();
  13. display::Display GetNearestDisplayToWindow(aura::Window* window) const;
  14. display::Display FindAdjacentDisplayIfPointIsNearMargin(
  15. const display::Display& current_display,
  16. const gfx::Point& point) const;
  17. };
  18. } // namespace keyboard
  19. #endif // ASH_KEYBOARD_UI_DISPLAY_UTIL_H_