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

Side by Side Diff: content/renderer/mus/render_widget_window_tree_client_factory.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 #include "content/renderer/mus/render_widget_window_tree_client_factory.h" 5 #include "content/renderer/mus/render_widget_window_tree_client_factory.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "components/mus/public/interfaces/window_tree.mojom.h"
13 #include "content/common/render_widget_window_tree_client_factory.mojom.h" 12 #include "content/common/render_widget_window_tree_client_factory.mojom.h"
14 #include "content/public/common/mojo_shell_connection.h" 13 #include "content/public/common/mojo_shell_connection.h"
15 #include "content/renderer/mus/render_widget_mus_connection.h" 14 #include "content/renderer/mus/render_widget_mus_connection.h"
16 #include "mojo/public/cpp/bindings/binding_set.h" 15 #include "mojo/public/cpp/bindings/binding_set.h"
17 #include "services/shell/public/cpp/connection.h" 16 #include "services/shell/public/cpp/connection.h"
18 #include "services/shell/public/cpp/interface_factory.h" 17 #include "services/shell/public/cpp/interface_factory.h"
19 #include "services/shell/public/cpp/shell_client.h" 18 #include "services/shell/public/cpp/shell_client.h"
19 #include "services/ui/public/interfaces/window_tree.mojom.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 namespace content { 22 namespace content {
23 23
24 namespace { 24 namespace {
25 25
26 // This object's lifetime is managed by MojoShellConnection because it's a 26 // This object's lifetime is managed by MojoShellConnection because it's a
27 // registered with it. 27 // registered with it.
28 class RenderWidgetWindowTreeClientFactoryImpl 28 class RenderWidgetWindowTreeClientFactoryImpl
29 : public shell::ShellClient, 29 : public shell::ShellClient,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 }; 66 };
67 67
68 } // namespace 68 } // namespace
69 69
70 void CreateRenderWidgetWindowTreeClientFactory() { 70 void CreateRenderWidgetWindowTreeClientFactory() {
71 MojoShellConnection::GetForProcess()->AddEmbeddedShellClient( 71 MojoShellConnection::GetForProcess()->AddEmbeddedShellClient(
72 base::WrapUnique(new RenderWidgetWindowTreeClientFactoryImpl)); 72 base::WrapUnique(new RenderWidgetWindowTreeClientFactoryImpl));
73 } 73 }
74 74
75 } // namespace content 75 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698