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

Side by Side Diff: chrome/browser/ui/window_sizer/window_sizer_common_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/window_sizer/window_sizer_common_unittest.h" 5 #include "chrome/browser/ui/window_sizer/window_sizer_common_unittest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "ash/wm/common/window_resizer.h" 10 #include "ash/wm/common/window_resizer.h"
(...skipping 27 matching lines...) Expand all
38 void set_index_of_display_nearest_window(int index) { 38 void set_index_of_display_nearest_window(int index) {
39 index_of_display_nearest_window_ = index; 39 index_of_display_nearest_window_ = index;
40 } 40 }
41 41
42 // Overridden from display::Screen: 42 // Overridden from display::Screen:
43 gfx::Point GetCursorScreenPoint() override { 43 gfx::Point GetCursorScreenPoint() override {
44 NOTREACHED(); 44 NOTREACHED();
45 return gfx::Point(); 45 return gfx::Point();
46 } 46 }
47 47
48 gfx::NativeWindow GetWindowUnderCursor() override { 48 bool IsWindowUnderCursor(gfx::NativeWindow window) override {
49 NOTREACHED(); 49 NOTIMPLEMENTED();
50 return NULL; 50 return false;
51 } 51 }
52 52
53 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override { 53 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override {
54 NOTREACHED(); 54 NOTREACHED();
55 return NULL; 55 return NULL;
56 } 56 }
57 57
58 int GetNumDisplays() const override { return displays_.size(); } 58 int GetNumDisplays() const override { return displays_.size(); }
59 59
60 std::vector<display::Display> GetAllDisplays() const override { 60 std::vector<display::Display> GetAllDisplays() const override {
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 { // Check that a window which hangs out of the screen get moved back in. 465 { // Check that a window which hangs out of the screen get moved back in.
466 gfx::Rect window_bounds; 466 gfx::Rect window_bounds;
467 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), 467 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(),
468 gfx::Rect(), DEFAULT, NULL, 468 gfx::Rect(), DEFAULT, NULL,
469 gfx::Rect(1020, 700, 100, 100), &window_bounds); 469 gfx::Rect(1020, 700, 100, 100), &window_bounds);
470 EXPECT_EQ("924,668 100x100", window_bounds.ToString()); 470 EXPECT_EQ("924,668 100x100", window_bounds.ToString());
471 } 471 }
472 } 472 }
473 473
474 #endif // defined(OS_MACOSX) 474 #endif // defined(OS_MACOSX)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698