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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 gfx::Transform GetUIScaleTransform() const; | 42 gfx::Transform GetUIScaleTransform() const; |
43 | 43 |
44 // WindowObserver overrides: | 44 // WindowObserver overrides: |
45 void OnWindowBoundsChanged(Window* window, | 45 void OnWindowBoundsChanged(Window* window, |
46 const gfx::Rect& old_bounds, | 46 const gfx::Rect& old_bounds, |
47 const gfx::Rect& new_bounds) override; | 47 const gfx::Rect& new_bounds) override; |
48 void OnWindowDestroying(Window* window) override; | 48 void OnWindowDestroying(Window* window) override; |
49 | 49 |
50 // display::Screen overrides: | 50 // display::Screen overrides: |
51 gfx::Point GetCursorScreenPoint() override; | 51 gfx::Point GetCursorScreenPoint() override; |
52 gfx::NativeWindow GetWindowUnderCursor() override; | 52 bool IsWindowUnderCursor(gfx::NativeWindow window) override; |
53 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; | 53 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; |
54 int GetNumDisplays() const override; | 54 int GetNumDisplays() const override; |
55 std::vector<display::Display> GetAllDisplays() const override; | 55 std::vector<display::Display> GetAllDisplays() const override; |
56 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; | 56 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; |
57 display::Display GetDisplayNearestPoint( | 57 display::Display GetDisplayNearestPoint( |
58 const gfx::Point& point) const override; | 58 const gfx::Point& point) const override; |
59 display::Display GetDisplayMatching( | 59 display::Display GetDisplayMatching( |
60 const gfx::Rect& match_rect) const override; | 60 const gfx::Rect& match_rect) const override; |
61 display::Display GetPrimaryDisplay() const override; | 61 display::Display GetPrimaryDisplay() const override; |
62 void AddObserver(display::DisplayObserver* observer) override; | 62 void AddObserver(display::DisplayObserver* observer) override; |
63 void RemoveObserver(display::DisplayObserver* observer) override; | 63 void RemoveObserver(display::DisplayObserver* observer) override; |
64 | 64 |
65 private: | 65 private: |
66 explicit TestScreen(const gfx::Rect& screen_bounds); | 66 explicit TestScreen(const gfx::Rect& screen_bounds); |
67 | 67 |
68 aura::WindowTreeHost* host_; | 68 aura::WindowTreeHost* host_; |
69 | 69 |
70 display::Display display_; | 70 display::Display display_; |
71 | 71 |
72 float ui_scale_; | 72 float ui_scale_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(TestScreen); | 74 DISALLOW_COPY_AND_ASSIGN(TestScreen); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace aura | 77 } // namespace aura |
78 | 78 |
79 #endif // UI_AURA_TEST_TEST_SCREEN_H_ | 79 #endif // UI_AURA_TEST_TEST_SCREEN_H_ |
OLD | NEW |