Index: ash/utility/transformer_util.h |
diff --git a/ash/utility/transformer_util.h b/ash/utility/transformer_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..65473161e98f952763ae8357c3ec7eae764ce413 |
--- /dev/null |
+++ b/ash/utility/transformer_util.h |
@@ -0,0 +1,43 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ASH_TRANSFORMER_UTIL_H_ |
+#define ASH_TRANSFORMER_UTIL_H_ |
+ |
+#include "ash/ash_export.h" |
+#include "ui/display/display.h" |
+ |
+namespace aura { |
+class Window; |
+} |
+ |
+namespace gfx { |
+class Transform; |
+} |
+ |
+namespace ash { |
+ |
+// Utility functions for window transformers. |
+ASH_EXPORT gfx::Transform CreateInsetsAndScaleTransform( |
+ const gfx::Insets& insets, |
+ float device_scale_factor, |
+ float ui_scale); |
+ |
+ASH_EXPORT gfx::Transform CreateMagnifierTransform(aura::Window* root_window); |
+ |
+ASH_EXPORT gfx::Transform CreateMirrorTransform( |
+ const display::Display& display); |
+ |
+ASH_EXPORT gfx::Transform CreateRootWindowRotationTransform( |
+ aura::Window* root_window, |
+ const display::Display& display); |
+ |
oshima
2017/04/13 23:51:45
can you document them?
wutao
2017/04/14 00:17:54
Done.
|
+ASH_EXPORT gfx::Transform CreateRotationTransform( |
+ display::Display::Rotation old_rotation, |
+ display::Display::Rotation new_rotation, |
+ const display::Display& display); |
+ |
+} // namespace ash |
+ |
+#endif // ASH_TRANSFORMER_UTIL_H_ |