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 "ui/aura/window_observer.h" | 9 #include "ui/aura/window_observer.h" |
10 #include "ui/gfx/display.h" | 10 #include "ui/gfx/display.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 gfx::Transform GetRotationTransform() const; | 42 gfx::Transform GetRotationTransform() const; |
43 gfx::Transform GetUIScaleTransform() const; | 43 gfx::Transform GetUIScaleTransform() const; |
44 | 44 |
45 // WindowObserver overrides: | 45 // WindowObserver overrides: |
46 virtual void OnWindowBoundsChanged(Window* window, | 46 virtual void OnWindowBoundsChanged(Window* window, |
47 const gfx::Rect& old_bounds, | 47 const gfx::Rect& old_bounds, |
48 const gfx::Rect& new_bounds) override; | 48 const gfx::Rect& new_bounds) override; |
49 virtual void OnWindowDestroying(Window* window) override; | 49 virtual void OnWindowDestroying(Window* window) override; |
50 | 50 |
51 // gfx::Screen overrides: | 51 // gfx::Screen overrides: |
52 virtual bool IsDIPEnabled() override; | |
53 virtual gfx::Point GetCursorScreenPoint() override; | 52 virtual gfx::Point GetCursorScreenPoint() override; |
54 virtual gfx::NativeWindow GetWindowUnderCursor() override; | 53 virtual gfx::NativeWindow GetWindowUnderCursor() override; |
55 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) | 54 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) |
56 override; | 55 override; |
57 virtual int GetNumDisplays() const override; | 56 virtual int GetNumDisplays() const override; |
58 virtual std::vector<gfx::Display> GetAllDisplays() const override; | 57 virtual std::vector<gfx::Display> GetAllDisplays() const override; |
59 virtual gfx::Display GetDisplayNearestWindow( | 58 virtual gfx::Display GetDisplayNearestWindow( |
60 gfx::NativeView view) const override; | 59 gfx::NativeView view) const override; |
61 virtual gfx::Display GetDisplayNearestPoint( | 60 virtual gfx::Display GetDisplayNearestPoint( |
62 const gfx::Point& point) const override; | 61 const gfx::Point& point) const override; |
(...skipping 11 matching lines...) Expand all Loading... |
74 gfx::Display display_; | 73 gfx::Display display_; |
75 | 74 |
76 float ui_scale_; | 75 float ui_scale_; |
77 | 76 |
78 DISALLOW_COPY_AND_ASSIGN(TestScreen); | 77 DISALLOW_COPY_AND_ASSIGN(TestScreen); |
79 }; | 78 }; |
80 | 79 |
81 } // namespace aura | 80 } // namespace aura |
82 | 81 |
83 #endif // UI_AURA_TEST_TEST_SCREEN_H_ | 82 #endif // UI_AURA_TEST_TEST_SCREEN_H_ |
OLD | NEW |