| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |