| 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 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ | 5 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ |
| 6 #define UI_AURA_TEST_TEST_SCREEN_H_ | 6 #define UI_AURA_TEST_TEST_SCREEN_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/aura/window_observer.h" | 10 #include "ui/aura/window_observer.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // WindowObserver overrides: | 46 // WindowObserver overrides: |
| 47 void OnWindowBoundsChanged(Window* window, | 47 void OnWindowBoundsChanged(Window* window, |
| 48 const gfx::Rect& old_bounds, | 48 const gfx::Rect& old_bounds, |
| 49 const gfx::Rect& new_bounds) override; | 49 const gfx::Rect& new_bounds) override; |
| 50 void OnWindowDestroying(Window* window) override; | 50 void OnWindowDestroying(Window* window) override; |
| 51 | 51 |
| 52 // display::Screen overrides: | 52 // display::Screen overrides: |
| 53 gfx::Point GetCursorScreenPoint() override; | 53 gfx::Point GetCursorScreenPoint() override; |
| 54 bool IsWindowUnderCursor(gfx::NativeWindow window) override; | 54 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
| 55 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 55 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 56 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; | 56 display::Display GetDisplayNearestWindow( |
| 57 gfx::NativeWindow window) const override; |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 TestScreen(const gfx::Rect& screen_bounds, | 60 TestScreen(const gfx::Rect& screen_bounds, |
| 60 WindowTreeClient* window_tree_client); | 61 WindowTreeClient* window_tree_client); |
| 61 | 62 |
| 62 aura::WindowTreeHost* host_; | 63 aura::WindowTreeHost* host_; |
| 63 | 64 |
| 64 float ui_scale_; | 65 float ui_scale_; |
| 65 | 66 |
| 66 WindowTreeClient* window_tree_client_; | 67 WindowTreeClient* window_tree_client_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(TestScreen); | 69 DISALLOW_COPY_AND_ASSIGN(TestScreen); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace aura | 72 } // namespace aura |
| 72 | 73 |
| 73 #endif // UI_AURA_TEST_TEST_SCREEN_H_ | 74 #endif // UI_AURA_TEST_TEST_SCREEN_H_ |
| OLD | NEW |