Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: ash/utility/transformer_util.h

Issue 2790583004: Add second copy request after screen rotation to flatten the layers in animation. (Closed)
Patch Set: Move some functions to ash/utility/transformer_util. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698