| OLD | NEW |
| (Empty) |
| 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/gfx/test/test_screen.h" | |
| 8 | |
| 9 namespace gfx { | |
| 10 namespace test { | |
| 11 | |
| 12 TestScreen::TestScreen() { | |
| 13 } | |
| 14 | |
| 15 TestScreen::~TestScreen() { | |
| 16 } | |
| 17 | |
| 18 gfx::Point TestScreen::GetCursorScreenPoint() { | |
| 19 return gfx::Point(); | |
| 20 } | |
| 21 | |
| 22 bool TestScreen::IsWindowUnderCursor(gfx::NativeWindow window) { | |
| 23 return false; | |
| 24 } | |
| 25 | |
| 26 gfx::NativeWindow TestScreen::GetWindowAtScreenPoint(const gfx::Point& point) { | |
| 27 return nullptr; | |
| 28 } | |
| 29 | |
| 30 int TestScreen::GetNumDisplays() const { | |
| 31 return 1; | |
| 32 } | |
| 33 | |
| 34 std::vector<gfx::Display> TestScreen::GetAllDisplays() const { | |
| 35 return std::vector<gfx::Display>(1, display_); | |
| 36 } | |
| 37 | |
| 38 gfx::Display TestScreen::GetDisplayNearestWindow(gfx::NativeView view) const { | |
| 39 return display_; | |
| 40 } | |
| 41 | |
| 42 gfx::Display TestScreen::GetDisplayNearestPoint(const gfx::Point& point) const { | |
| 43 return display_; | |
| 44 } | |
| 45 | |
| 46 gfx::Display TestScreen::GetDisplayMatching(const gfx::Rect& match_rect) const { | |
| 47 return display_; | |
| 48 } | |
| 49 | |
| 50 gfx::Display TestScreen::GetPrimaryDisplay() const { | |
| 51 return display_; | |
| 52 } | |
| 53 | |
| 54 void TestScreen::AddObserver(gfx::DisplayObserver* observer) { | |
| 55 } | |
| 56 | |
| 57 void TestScreen::RemoveObserver(gfx::DisplayObserver* observer) { | |
| 58 } | |
| 59 | |
| 60 } // namespace test | |
| 61 } // namespace gfx | |
| OLD | NEW |