OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_TRANSFORMER_UTIL_H_ | |
6 #define ASH_TRANSFORMER_UTIL_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "ui/display/display.h" | |
10 | |
11 namespace aura { | |
12 class Window; | |
13 } | |
14 | |
15 namespace gfx { | |
16 class Transform; | |
17 } | |
18 | |
19 namespace ash { | |
20 | |
21 // Utility functions for window transformers. | |
22 ASH_EXPORT gfx::Transform CreateInsetsAndScaleTransform( | |
23 const gfx::Insets& insets, | |
24 float device_scale_factor, | |
25 float ui_scale); | |
26 | |
27 ASH_EXPORT gfx::Transform CreateMagnifierTransform(aura::Window* root_window); | |
28 | |
29 ASH_EXPORT gfx::Transform CreateMirrorTransform( | |
30 const display::Display& display); | |
31 | |
32 ASH_EXPORT gfx::Transform CreateRootWindowRotationTransform( | |
33 aura::Window* root_window, | |
34 const display::Display& display); | |
35 | |
oshima
2017/04/13 23:51:45
can you document them?
wutao
2017/04/14 00:17:54
Done.
| |
36 ASH_EXPORT gfx::Transform CreateRotationTransform( | |
37 display::Display::Rotation old_rotation, | |
38 display::Display::Rotation new_rotation, | |
39 const display::Display& display); | |
40 | |
41 } // namespace ash | |
42 | |
43 #endif // ASH_TRANSFORMER_UTIL_H_ | |
OLD | NEW |