Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Side by Side Diff: ui/gfx/test/test_screen.cc

Issue 1935083003: gfx::Screen: Replace GetWindowUnderCursor() with IsWindowUnderCursor(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Null checks Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/gfx/test/test_screen.h" 7 #include "ui/gfx/test/test_screen.h"
8 8
9 namespace gfx { 9 namespace gfx {
10 namespace test { 10 namespace test {
11 11
12 TestScreen::TestScreen() { 12 TestScreen::TestScreen() {
13 } 13 }
14 14
15 TestScreen::~TestScreen() { 15 TestScreen::~TestScreen() {
16 } 16 }
17 17
18 gfx::Point TestScreen::GetCursorScreenPoint() { 18 gfx::Point TestScreen::GetCursorScreenPoint() {
19 return gfx::Point(); 19 return gfx::Point();
20 } 20 }
21 21
22 gfx::NativeWindow TestScreen::GetWindowUnderCursor() { 22 bool TestScreen::IsWindowUnderCursor(gfx::NativeWindow window) {
23 return nullptr; 23 return false;
24 } 24 }
25 25
26 gfx::NativeWindow TestScreen::GetWindowAtScreenPoint(const gfx::Point& point) { 26 gfx::NativeWindow TestScreen::GetWindowAtScreenPoint(const gfx::Point& point) {
27 return nullptr; 27 return nullptr;
28 } 28 }
29 29
30 int TestScreen::GetNumDisplays() const { 30 int TestScreen::GetNumDisplays() const {
31 return 1; 31 return 1;
32 } 32 }
33 33
(...skipping 18 matching lines...) Expand all
52 } 52 }
53 53
54 void TestScreen::AddObserver(gfx::DisplayObserver* observer) { 54 void TestScreen::AddObserver(gfx::DisplayObserver* observer) {
55 } 55 }
56 56
57 void TestScreen::RemoveObserver(gfx::DisplayObserver* observer) { 57 void TestScreen::RemoveObserver(gfx::DisplayObserver* observer) {
58 } 58 }
59 59
60 } // namespace test 60 } // namespace test
61 } // namespace gfx 61 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698