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

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

Issue 2040453002: views/mus: Create the BitmapUploader only when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
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
18 namespace mus { 14 namespace mus {
19 class Window; 15 class Window;
20 } 16 }
21 17
22 namespace shell { 18 namespace shell {
23 class Connector; 19 class Connector;
24 } 20 }
25 21
26 namespace ui {
27 class ViewProp;
28 }
29
30 namespace views { 22 namespace views {
31 23
32 class InputMethodMUS; 24 class InputMethodMUS;
33 class NativeWidgetMus; 25 class NativeWidgetMus;
34 class PlatformWindowMus; 26 class PlatformWindowMus;
35 27
36 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { 28 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
37 public: 29 public:
38 WindowTreeHostMus(shell::Connector* connector, 30 WindowTreeHostMus(NativeWidgetMus* native_widget, mus::Window* window);
39 NativeWidgetMus* native_widget,
40 mus::Window* window);
41 ~WindowTreeHostMus() override; 31 ~WindowTreeHostMus() override;
42 32
43 private: 33 private:
44 // aura::WindowTreeHostPlatform: 34 // aura::WindowTreeHostPlatform:
45 void DispatchEvent(ui::Event* event) override; 35 void DispatchEvent(ui::Event* event) override;
46 void OnClosed() override; 36 void OnClosed() override;
47 void OnActivationChanged(bool active) override; 37 void OnActivationChanged(bool active) override;
48 void OnCloseRequest() override; 38 void OnCloseRequest() override;
49 39
50 NativeWidgetMus* native_widget_; 40 NativeWidgetMus* native_widget_;
51 std::unique_ptr<InputMethodMUS> input_method_; 41 std::unique_ptr<InputMethodMUS> input_method_;
52 42
53 // Bitmap management.
54 std::unique_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_;
55 std::unique_ptr<ui::ViewProp> prop_;
56
57 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 43 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
58 }; 44 };
59 45
60 } // namespace views 46 } // namespace views
61 47
62 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 48 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698