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

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

Issue 1641003002: [exp] ash: Ash in Mus. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 10 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/host/ash_window_tree_host_x11.cc ('k') | ash/host/transformer_helper.cc » ('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 "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
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_
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ash/host/transformer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698