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

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

Issue 2470963002: Makes it possible for clients to directly create WindowTreeHostMus (Closed)
Patch Set: nuke comment Created 4 years, 1 month 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/aura/window_port_local.cc ('k') | ui/views/mus/mus_client.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MUS_CLIENT_INIT_H_ 5 #ifndef UI_VIEWS_MUS_MUS_CLIENT_INIT_H_
6 #define UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ 6 #define UI_VIEWS_MUS_MUS_CLIENT_INIT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 service_manager::Connector* connector() { return connector_; } 69 service_manager::Connector* connector() { return connector_; }
70 70
71 private: 71 private:
72 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params, 72 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params,
73 internal::NativeWidgetDelegate* delegate); 73 internal::NativeWidgetDelegate* delegate);
74 74
75 // Creates aura::WindowPortMus. 75 // Creates aura::WindowPortMus.
76 std::unique_ptr<aura::WindowPort> CreateWindowPort(aura::Window* window); 76 std::unique_ptr<aura::WindowPort> CreateWindowPort(aura::Window* window);
77 77
78 // aura::WindowTreeClientDelegate: 78 // aura::WindowTreeClientDelegate:
79 void OnEmbed(aura::Window* root) override; 79 void OnEmbed(
80 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override;
80 void OnLostConnection(aura::WindowTreeClient* client) override; 81 void OnLostConnection(aura::WindowTreeClient* client) override;
81 void OnEmbedRootDestroyed(aura::Window* root) override; 82 void OnEmbedRootDestroyed(aura::Window* root) override;
82 void OnPointerEventObserved(const ui::PointerEvent& event, 83 void OnPointerEventObserved(const ui::PointerEvent& event,
83 aura::Window* target) override; 84 aura::Window* target) override;
84 aura::client::FocusClient* GetFocusClient() override; 85 aura::client::FocusClient* GetFocusClient() override;
85 aura::client::CaptureClient* GetCaptureClient() override; 86 aura::client::CaptureClient* GetCaptureClient() override;
86 aura::PropertyConverter* GetPropertyConverter() override; 87 aura::PropertyConverter* GetPropertyConverter() override;
87 88
88 // ScreenMusDelegate: 89 // ScreenMusDelegate:
89 void OnWindowManagerFrameValuesChanged() override; 90 void OnWindowManagerFrameValuesChanged() override;
(...skipping 21 matching lines...) Expand all
111 std::unique_ptr<ui::GpuService> gpu_service_; 112 std::unique_ptr<ui::GpuService> gpu_service_;
112 113
113 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; 114 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(MusClient); 116 DISALLOW_COPY_AND_ASSIGN(MusClient);
116 }; 117 };
117 118
118 } // namespace views 119 } // namespace views
119 120
120 #endif // UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ 121 #endif // UI_VIEWS_MUS_MUS_CLIENT_INIT_H_
OLDNEW
« no previous file with comments | « ui/aura/window_port_local.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698