OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_HOST_TRANSFORMER_HELPER_H_ | 5 #ifndef ASH_HOST_TRANSFORMER_HELPER_H_ |
6 #define ASH_HOST_TRANSFORMER_HELPER_H_ | 6 #define ASH_HOST_TRANSFORMER_HELPER_H_ |
7 | 7 |
| 8 #include "ash/ash_export.h" |
8 #include "base/macros.h" | 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 | 11 |
11 namespace gfx { | 12 namespace gfx { |
12 class Insets; | 13 class Insets; |
13 class Size; | 14 class Size; |
14 class Transform; | 15 class Transform; |
15 } | 16 } |
16 | 17 |
17 namespace ash { | 18 namespace ash { |
18 class AshWindowTreeHost; | 19 class AshWindowTreeHost; |
19 class RootWindowTransformer; | 20 class RootWindowTransformer; |
20 | 21 |
21 // A helper class to handle ash specific feature that requires | 22 // A helper class to handle ash specific feature that requires |
22 // transforming a root window (such as rotation, UI zooming). | 23 // transforming a root window (such as rotation, UI zooming). |
23 class TransformerHelper { | 24 class ASH_EXPORT TransformerHelper { |
24 public: | 25 public: |
25 explicit TransformerHelper(AshWindowTreeHost* ash_host); | 26 explicit TransformerHelper(AshWindowTreeHost* ash_host); |
26 ~TransformerHelper(); | 27 ~TransformerHelper(); |
27 | 28 |
28 // Initializes the transformer with identity transform. | 29 // Initializes the transformer with identity transform. |
29 void Init(); | 30 void Init(); |
30 | 31 |
31 // Returns the the insets that specifies the effective root window | 32 // Returns the the insets that specifies the effective root window |
32 // area within the host window. | 33 // area within the host window. |
33 gfx::Insets GetHostInsets() const; | 34 gfx::Insets GetHostInsets() const; |
(...skipping 15 matching lines...) Expand all Loading... |
49 private: | 50 private: |
50 AshWindowTreeHost* ash_host_; | 51 AshWindowTreeHost* ash_host_; |
51 scoped_ptr<RootWindowTransformer> transformer_; | 52 scoped_ptr<RootWindowTransformer> transformer_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(TransformerHelper); | 54 DISALLOW_COPY_AND_ASSIGN(TransformerHelper); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace ash | 57 } // namespace ash |
57 | 58 |
58 #endif // ASH_HOST_TRANSFORMER_HELPER_H_ | 59 #endif // ASH_HOST_TRANSFORMER_HELPER_H_ |
OLD | NEW |