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.
4 
5 #include <vector>
6 
7 #include "ui/display/test/test_screen.h"
8 
9 namespace display {
10 namespace test {
11 
TestScreen()12 TestScreen::TestScreen() {
13   Display display(1, gfx::Rect(0, 0, 100, 100));
14   ProcessDisplayChanged(display, true /* is_primary */);
15 }
16 
~TestScreen()17 TestScreen::~TestScreen() {}
18 
set_cursor_screen_point(const gfx::Point & point)19 void TestScreen::set_cursor_screen_point(const gfx::Point& point) {
20   cursor_screen_point_ = point;
21 }
22 
GetCursorScreenPoint()23 gfx::Point TestScreen::GetCursorScreenPoint() {
24   return cursor_screen_point_;
25 }
26 
IsWindowUnderCursor(gfx::NativeWindow window)27 bool TestScreen::IsWindowUnderCursor(gfx::NativeWindow window) {
28   return false;
29 }
30 
GetWindowAtScreenPoint(const gfx::Point & point)31 gfx::NativeWindow TestScreen::GetWindowAtScreenPoint(const gfx::Point& point) {
32   return nullptr;
33 }
34 
GetDisplayNearestWindow(gfx::NativeWindow window) const35 Display TestScreen::GetDisplayNearestWindow(gfx::NativeWindow window) const {
36   return GetPrimaryDisplay();
37 }
38 
39 }  // namespace test
40 }  // namespace display
41