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

Side by Side Diff: ash/host/transformer_helper.h

Issue 2858563002: Revert of chromeos: Makes mushrome use simplified display management (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/mus/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h"
11 #include "base/macros.h" 10 #include "base/macros.h"
12 11
13 namespace gfx { 12 namespace gfx {
14 class Insets; 13 class Insets;
15 class Size; 14 class Size;
16 class Transform; 15 class Transform;
17 } 16 }
18 17
19 namespace ash { 18 namespace ash {
20 class AshWindowTreeHost; 19 class AshWindowTreeHost;
21 class RootWindowTransformer; 20 class RootWindowTransformer;
22 21
23 // A helper class to handle ash specific feature that requires 22 // A helper class to handle ash specific feature that requires
24 // transforming a root window (such as rotation, UI zooming). 23 // transforming a root window (such as rotation, UI zooming).
25 class ASH_EXPORT TransformerHelper { 24 class TransformerHelper {
26 public: 25 public:
27 explicit TransformerHelper(AshWindowTreeHost* ash_host); 26 explicit TransformerHelper(AshWindowTreeHost* ash_host);
28 ~TransformerHelper(); 27 ~TransformerHelper();
29 28
30 // Initializes the transformer with identity transform. 29 // Initializes the transformer with identity transform.
31 void Init(); 30 void Init();
32 31
33 // Returns the the insets that specifies the effective root window 32 // Returns the the insets that specifies the effective root window
34 // area within the host window. 33 // area within the host window.
35 gfx::Insets GetHostInsets() const; 34 gfx::Insets GetHostInsets() const;
(...skipping 16 matching lines...) Expand all
52 private: 51 private:
53 AshWindowTreeHost* ash_host_; 52 AshWindowTreeHost* ash_host_;
54 std::unique_ptr<RootWindowTransformer> transformer_; 53 std::unique_ptr<RootWindowTransformer> transformer_;
55 54
56 DISALLOW_COPY_AND_ASSIGN(TransformerHelper); 55 DISALLOW_COPY_AND_ASSIGN(TransformerHelper);
57 }; 56 };
58 57
59 } // namespace ash 58 } // namespace ash
60 59
61 #endif // ASH_HOST_TRANSFORMER_HELPER_H_ 60 #endif // ASH_HOST_TRANSFORMER_HELPER_H_
OLDNEW
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698