OLD | NEW |
| (Empty) |
1 // Copyright 2015 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 UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ | |
6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "services/service_manager/public/cpp/connector.h" | |
10 #include "ui/aura/window_tree_host_platform.h" | |
11 #include "ui/views/mus/mus_export.h" | |
12 | |
13 namespace ui { | |
14 class Window; | |
15 } | |
16 | |
17 namespace views { | |
18 | |
19 class NativeWidgetMus; | |
20 | |
21 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { | |
22 public: | |
23 WindowTreeHostMus(NativeWidgetMus* native_widget, ui::Window* window); | |
24 ~WindowTreeHostMus() override; | |
25 NativeWidgetMus* native_widget() { return native_widget_; } | |
26 | |
27 private: | |
28 // aura::WindowTreeHostPlatform: | |
29 void DispatchEvent(ui::Event* event) override; | |
30 void OnClosed() override; | |
31 void OnActivationChanged(bool active) override; | |
32 void OnCloseRequest() override; | |
33 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; | |
34 | |
35 NativeWidgetMus* native_widget_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); | |
38 }; | |
39 | |
40 } // namespace views | |
41 | |
42 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ | |
OLD | NEW |