summaryrefslogtreecommitdiff
path: root/chromium/ui/keyboard/display_util.h
blob: 8d4faf6dbebfb0eb02f5b4fd2bf1643ed5edcfce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_KEYBOARD_DISPLAY_UTIL_H_
#define UI_KEYBOARD_DISPLAY_UTIL_H_

#include "ui/aura/window.h"
#include "ui/display/display.h"

namespace keyboard {

// Helper class for querying information about the screen.
class DisplayUtil {
 public:
  DisplayUtil();

  int64_t GetNearestDisplayIdToWindow(aura::Window* window) const;
  display::Display GetNearestDisplayToWindow(aura::Window* window) const;
  display::Display FindAdjacentDisplayIfPointIsNearMargin(
      const display::Display& current_display,
      const gfx::Point& point) const;
};

}  // namespace keyboard

#endif  // UI_KEYBOARD_DISPLAY_UTIL_H_