1 // Copyright 2015 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.
7 #include "ui/gfx/test/test_screen.h"
12 TestScreen::TestScreen() {
15 TestScreen::~TestScreen() {
18 gfx::Point
TestScreen::GetCursorScreenPoint() {
22 gfx::NativeWindow
TestScreen::GetWindowUnderCursor() {
26 gfx::NativeWindow
TestScreen::GetWindowAtScreenPoint(const gfx::Point
& point
) {
30 int TestScreen::GetNumDisplays() const {
34 std::vector
<gfx::Display
> TestScreen::GetAllDisplays() const {
35 return std::vector
<gfx::Display
>(1, display_
);
38 gfx::Display
TestScreen::GetDisplayNearestWindow(gfx::NativeView view
) const {
42 gfx::Display
TestScreen::GetDisplayNearestPoint(const gfx::Point
& point
) const {
46 gfx::Display
TestScreen::GetDisplayMatching(const gfx::Rect
& match_rect
) const {
50 gfx::Display
TestScreen::GetPrimaryDisplay() const {
54 void TestScreen::AddObserver(gfx::DisplayObserver
* observer
) {
57 void TestScreen::RemoveObserver(gfx::DisplayObserver
* observer
) {