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

Side by Side Diff: ash/mus/ash_window_tree_host_mus.h

Issue 2840043003: chromeos: Makes mushrome use simplified display management (Closed)
Patch Set: merge 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/mus/DEPS ('k') | ash/mus/ash_window_tree_host_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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_
OLDNEW
« no previous file with comments | « ash/mus/DEPS ('k') | ash/mus/ash_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698