OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "ui/display/test/test_screen.h" | 7 #include "ui/display/test/test_screen.h" |
8 | 8 |
9 namespace display { | 9 namespace display { |
10 namespace test { | 10 namespace test { |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 | 26 |
27 gfx::NativeWindow TestScreen::GetWindowAtScreenPoint(const gfx::Point& point) { | 27 gfx::NativeWindow TestScreen::GetWindowAtScreenPoint(const gfx::Point& point) { |
28 return nullptr; | 28 return nullptr; |
29 } | 29 } |
30 | 30 |
31 Display TestScreen::GetDisplayNearestWindow(gfx::NativeView view) const { | 31 Display TestScreen::GetDisplayNearestWindow(gfx::NativeView view) const { |
32 return GetPrimaryDisplay(); | 32 return GetPrimaryDisplay(); |
33 } | 33 } |
34 | 34 |
| 35 #if defined(OS_ANDROID) |
| 36 Display TestScreen::GetDisplayNearestWindowAndroid( |
| 37 gfx::NativeWindow window) const { |
| 38 return GetPrimaryDisplay(); |
| 39 } |
| 40 #endif |
| 41 |
35 } // namespace test | 42 } // namespace test |
36 } // namespace display | 43 } // namespace display |
OLD | NEW |