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 19 matching lines...) Expand all Loading... |
30 static TestScreen* Create(const gfx::Size& size); | 30 static TestScreen* Create(const gfx::Size& size); |
31 ~TestScreen() override; | 31 ~TestScreen() override; |
32 | 32 |
33 WindowTreeHost* CreateHostForPrimaryDisplay(); | 33 WindowTreeHost* CreateHostForPrimaryDisplay(); |
34 | 34 |
35 void SetDeviceScaleFactor(float device_scale_fator); | 35 void SetDeviceScaleFactor(float device_scale_fator); |
36 void SetDisplayRotation(display::Display::Rotation rotation); | 36 void SetDisplayRotation(display::Display::Rotation rotation); |
37 void SetUIScale(float ui_scale); | 37 void SetUIScale(float ui_scale); |
38 void SetWorkAreaInsets(const gfx::Insets& insets); | 38 void SetWorkAreaInsets(const gfx::Insets& insets); |
39 | 39 |
40 // gfx::Screen overrides: | 40 // display::Screen overrides: |
41 display::Display GetPrimaryDisplay() const override; | 41 display::Display GetPrimaryDisplay() const override; |
42 | 42 |
43 protected: | 43 protected: |
44 gfx::Transform GetRotationTransform() const; | 44 gfx::Transform GetRotationTransform() const; |
45 gfx::Transform GetUIScaleTransform() const; | 45 gfx::Transform GetUIScaleTransform() const; |
46 | 46 |
47 // WindowObserver overrides: | 47 // WindowObserver overrides: |
48 void OnWindowBoundsChanged(Window* window, | 48 void OnWindowBoundsChanged(Window* window, |
49 const gfx::Rect& old_bounds, | 49 const gfx::Rect& old_bounds, |
50 const gfx::Rect& new_bounds) override; | 50 const gfx::Rect& new_bounds) override; |
(...skipping 21 matching lines...) Expand all Loading... |
72 display::Display display_; | 72 display::Display display_; |
73 | 73 |
74 float ui_scale_; | 74 float ui_scale_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(TestScreen); | 76 DISALLOW_COPY_AND_ASSIGN(TestScreen); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace aura | 79 } // namespace aura |
80 | 80 |
81 #endif // UI_AURA_TEST_TEST_SCREEN_H_ | 81 #endif // UI_AURA_TEST_TEST_SCREEN_H_ |
OLD | NEW |