blob: 5882a28d6262876b9e49d4df4b1a6cb453d18ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
#define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
#include "base/macros.h"
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "ui/aura/window_tree_host_platform.h"
#include "ui/views/mus/mus_export.h"
class SkBitmap;
namespace mojo {
class Shell;
}
namespace mus {
class Window;
}
namespace ui {
class Compositor;
}
namespace views {
class InputMethodMUS;
class NativeWidgetMus;
class PlatformWindowMus;
class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
public:
WindowTreeHostMus(mojo::Shell* shell,
NativeWidgetMus* native_widget_,
mus::Window* window,
mus::mojom::SurfaceType surface_type);
~WindowTreeHostMus() override;
PlatformWindowMus* platform_window();
ui::PlatformWindowState show_state() const { return show_state_; }
private:
// aura::WindowTreeHostPlatform:
void DispatchEvent(ui::Event* event) override;
void OnClosed() override;
void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
void OnActivationChanged(bool active) override;
NativeWidgetMus* native_widget_;
scoped_ptr<InputMethodMUS> input_method_;
ui::PlatformWindowState show_state_;
DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
};
} // namespace views
#endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
|