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

Side by Side Diff: ui/views/mus/window_tree_host_mus.h

Issue 1647483002: views/mus: WindowTreeHostMus doesn't need to know about SurfaceType. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit 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 | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 5 #ifndef UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/mus/public/interfaces/window_tree.mojom.h"
10 #include "ui/aura/window_tree_host_platform.h" 9 #include "ui/aura/window_tree_host_platform.h"
11 #include "ui/views/mus/mus_export.h" 10 #include "ui/views/mus/mus_export.h"
12 11
13 class SkBitmap; 12 class SkBitmap;
14 13
15 namespace mojo { 14 namespace mojo {
16 class Shell; 15 class Shell;
17 } 16 }
18 17
19 namespace mus { 18 namespace mus {
20 class Window; 19 class Window;
21 } 20 }
22 21
23 namespace views { 22 namespace views {
24 23
25 class InputMethodMUS; 24 class InputMethodMUS;
26 class NativeWidgetMus; 25 class NativeWidgetMus;
27 class PlatformWindowMus; 26 class PlatformWindowMus;
28 27
29 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { 28 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
30 public: 29 public:
31 WindowTreeHostMus(mojo::Shell* shell, 30 WindowTreeHostMus(mojo::Shell* shell,
32 NativeWidgetMus* native_widget_, 31 NativeWidgetMus* native_widget_,
33 mus::Window* window, 32 mus::Window* window);
34 mus::mojom::SurfaceType surface_type);
35 ~WindowTreeHostMus() override; 33 ~WindowTreeHostMus() override;
36 34
37 PlatformWindowMus* platform_window(); 35 PlatformWindowMus* platform_window();
38 ui::PlatformWindowState show_state() const { return show_state_; } 36 ui::PlatformWindowState show_state() const { return show_state_; }
39 37
40 private: 38 private:
41 // aura::WindowTreeHostPlatform: 39 // aura::WindowTreeHostPlatform:
42 void DispatchEvent(ui::Event* event) override; 40 void DispatchEvent(ui::Event* event) override;
43 void OnClosed() override; 41 void OnClosed() override;
44 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 42 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
45 void OnActivationChanged(bool active) override; 43 void OnActivationChanged(bool active) override;
46 void OnCloseRequest() override; 44 void OnCloseRequest() override;
47 45
48 NativeWidgetMus* native_widget_; 46 NativeWidgetMus* native_widget_;
49 scoped_ptr<InputMethodMUS> input_method_; 47 scoped_ptr<InputMethodMUS> input_method_;
50 ui::PlatformWindowState show_state_; 48 ui::PlatformWindowState show_state_;
51 49
52 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 50 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
53 }; 51 };
54 52
55 } // namespace views 53 } // namespace views
56 54
57 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 55 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698