OLD | NEW |
| (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_MUS_ASH_WINDOW_TREE_HOST_MUS_H_ | |
6 #define ASH_MUS_ASH_WINDOW_TREE_HOST_MUS_H_ | |
7 | |
8 #include "ash/host/ash_window_tree_host.h" | |
9 #include "ui/aura/mus/window_tree_host_mus.h" | |
10 | |
11 namespace ash { | |
12 | |
13 class TransformerHelper; | |
14 | |
15 // Implementation of AshWindowTreeHost for mus/mash. | |
16 class AshWindowTreeHostMus : public AshWindowTreeHost, | |
17 public aura::WindowTreeHostMus { | |
18 public: | |
19 explicit AshWindowTreeHostMus(aura::WindowTreeHostMusInitParams init_params); | |
20 ~AshWindowTreeHostMus() override; | |
21 | |
22 // AshWindowTreeHost: | |
23 void ToggleFullScreen() override; | |
24 bool ConfineCursorToRootWindow() override; | |
25 void UnConfineCursor() override; | |
26 void SetRootWindowTransformer( | |
27 std::unique_ptr<RootWindowTransformer> transformer) override; | |
28 gfx::Insets GetHostInsets() const override; | |
29 aura::WindowTreeHost* AsWindowTreeHost() override; | |
30 void PrepareForShutdown() override; | |
31 void RegisterMirroringHost(AshWindowTreeHost* mirroring_ash_host) override; | |
32 | |
33 // aura::WindowTreeHostMus: | |
34 void SetRootTransform(const gfx::Transform& transform) override; | |
35 gfx::Transform GetRootTransform() const override; | |
36 gfx::Transform GetInverseRootTransform() const override; | |
37 void UpdateRootWindowSizeInPixels( | |
38 const gfx::Size& host_size_in_pixels) override; | |
39 | |
40 private: | |
41 std::unique_ptr<TransformerHelper> transformer_helper_; | |
42 | |
43 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostMus); | |
44 }; | |
45 | |
46 } // namespace ash | |
47 | |
48 #endif // ASH_MUS_ASH_WINDOW_TREE_HOST_MUS_H_ | |
OLD | NEW |