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

Side by Side Diff: ui/views/mus/native_widget_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_NATIVE_WIDGET_MUS_H_ 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 14 matching lines...) Expand all
25 25
26 namespace aura { 26 namespace aura {
27 namespace client { 27 namespace client {
28 class DefaultCaptureClient; 28 class DefaultCaptureClient;
29 class ScreenPositionClient; 29 class ScreenPositionClient;
30 class WindowTreeClient; 30 class WindowTreeClient;
31 } 31 }
32 class Window; 32 class Window;
33 } 33 }
34 34
35 namespace bitmap_uploader {
36 class BitmapUploader;
37 }
38
35 namespace mus { 39 namespace mus {
36 class Window; 40 class Window;
37 class WindowTreeClient; 41 class WindowTreeClient;
38 namespace mojom { 42 namespace mojom {
39 enum class Cursor; 43 enum class Cursor;
40 enum class EventResult; 44 enum class EventResult;
41 } 45 }
42 } 46 }
43 47
44 namespace shell { 48 namespace shell {
45 class Connector; 49 class Connector;
46 } 50 }
47 51
48 namespace ui { 52 namespace ui {
49 class Event; 53 class Event;
54 class ViewProp;
50 } 55 }
51 56
52 namespace wm { 57 namespace wm {
53 class CursorManager; 58 class CursorManager;
54 class FocusController; 59 class FocusController;
55 } 60 }
56 61
57 namespace views { 62 namespace views {
58 class SurfaceContextFactory; 63 class SurfaceContextFactory;
59 class WidgetDelegate; 64 class WidgetDelegate;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 266
262 // Aura configuration. 267 // Aura configuration.
263 std::unique_ptr<SurfaceContextFactory> context_factory_; 268 std::unique_ptr<SurfaceContextFactory> context_factory_;
264 std::unique_ptr<WindowTreeHostMus> window_tree_host_; 269 std::unique_ptr<WindowTreeHostMus> window_tree_host_;
265 aura::Window* content_; 270 aura::Window* content_;
266 std::unique_ptr<wm::FocusController> focus_client_; 271 std::unique_ptr<wm::FocusController> focus_client_;
267 std::unique_ptr<MusCaptureClient> capture_client_; 272 std::unique_ptr<MusCaptureClient> capture_client_;
268 std::unique_ptr<aura::client::WindowTreeClient> window_tree_client_; 273 std::unique_ptr<aura::client::WindowTreeClient> window_tree_client_;
269 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; 274 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_;
270 std::unique_ptr<wm::CursorManager> cursor_manager_; 275 std::unique_ptr<wm::CursorManager> cursor_manager_;
276
277 // Bitmap management.
278 std::unique_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_;
279 std::unique_ptr<ui::ViewProp> prop_;
280
271 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; 281 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_;
272 282
273 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); 283 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus);
274 }; 284 };
275 285
276 } // namespace views 286 } // namespace views
277 287
278 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 288 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698