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

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

Issue 1999083002: Finish eliminating PlatformWindowMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/platform_window_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 "ui/aura/window_tree_host_platform.h" 9 #include "ui/aura/window_tree_host_platform.h"
10 #include "ui/views/mus/mus_export.h" 10 #include "ui/views/mus/mus_export.h"
11 11
12 class SkBitmap; 12 class SkBitmap;
13 13
14 namespace bitmap_uploader {
15 class BitmapUploader;
16 }
17
14 namespace mus { 18 namespace mus {
15 class Window; 19 class Window;
16 } 20 }
17 21
18 namespace shell { 22 namespace shell {
19 class Connector; 23 class Connector;
20 } 24 }
21 25
26 namespace ui {
27 class ViewProp;
28 }
29
22 namespace views { 30 namespace views {
23 31
24 class InputMethodMUS; 32 class InputMethodMUS;
25 class NativeWidgetMus; 33 class NativeWidgetMus;
26 class PlatformWindowMus; 34 class PlatformWindowMus;
27 35
28 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { 36 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
29 public: 37 public:
30 WindowTreeHostMus(shell::Connector* connector, 38 WindowTreeHostMus(shell::Connector* connector,
31 NativeWidgetMus* native_widget, 39 NativeWidgetMus* native_widget,
32 mus::Window* window); 40 mus::Window* window);
33 ~WindowTreeHostMus() override; 41 ~WindowTreeHostMus() override;
34 42
35 PlatformWindowMus* platform_window();
36
37 private: 43 private:
38 // aura::WindowTreeHostPlatform: 44 // aura::WindowTreeHostPlatform:
39 void DispatchEvent(ui::Event* event) override; 45 void DispatchEvent(ui::Event* event) override;
40 void OnClosed() override; 46 void OnClosed() override;
41 void OnActivationChanged(bool active) override; 47 void OnActivationChanged(bool active) override;
42 void OnCloseRequest() override; 48 void OnCloseRequest() override;
43 49
44 NativeWidgetMus* native_widget_; 50 NativeWidgetMus* native_widget_;
45 std::unique_ptr<InputMethodMUS> input_method_; 51 std::unique_ptr<InputMethodMUS> input_method_;
46 52
53 // Bitmap management.
54 std::unique_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_;
55 std::unique_ptr<ui::ViewProp> prop_;
56
47 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 57 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
48 }; 58 };
49 59
50 } // namespace views 60 } // namespace views
51 61
52 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 62 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/platform_window_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