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

Side by Side Diff: content/renderer/mus/render_widget_mus_connection.h

Issue 1778293004: Export Content Mus for Unit Testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « content/renderer/mus/compositor_mus_connection.h ('k') | no next file » | 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 CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 5 #ifndef CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
11 #include "components/mus/public/cpp/window_surface.h" 11 #include "components/mus/public/cpp/window_surface.h"
12 #include "content/common/content_export.h"
12 #include "content/renderer/input/render_widget_input_handler_delegate.h" 13 #include "content/renderer/input/render_widget_input_handler_delegate.h"
13 #include "content/renderer/mus/compositor_mus_connection.h" 14 #include "content/renderer/mus/compositor_mus_connection.h"
14 15
15 namespace content { 16 namespace content {
16 17
17 class InputHandlerManager; 18 class InputHandlerManager;
18 19
19 // Use on main thread. 20 // Use on main thread.
20 class RenderWidgetMusConnection : public RenderWidgetInputHandlerDelegate { 21 class CONTENT_EXPORT RenderWidgetMusConnection
22 : public RenderWidgetInputHandlerDelegate {
21 public: 23 public:
22 // Bind to a WindowTreeClient request. 24 // Bind to a WindowTreeClient request.
23 void Bind(mojo::InterfaceRequest<mus::mojom::WindowTreeClient> request); 25 void Bind(mojo::InterfaceRequest<mus::mojom::WindowTreeClient> request);
24 26
25 // Create a cc output surface. 27 // Create a cc output surface.
26 scoped_ptr<cc::OutputSurface> CreateOutputSurface(); 28 scoped_ptr<cc::OutputSurface> CreateOutputSurface();
27 29
28 static RenderWidgetMusConnection* Get(int routing_id); 30 static RenderWidgetMusConnection* Get(int routing_id);
29 31
30 // Get the connection from a routing_id, if the connection doesn't exist, 32 // Get the connection from a routing_id, if the connection doesn't exist,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 69
68 // Used to verify single threaded access. 70 // Used to verify single threaded access.
69 base::ThreadChecker thread_checker_; 71 base::ThreadChecker thread_checker_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); 73 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection);
72 }; 74 };
73 75
74 } // namespace content 76 } // namespace content
75 77
76 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 78 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/renderer/mus/compositor_mus_connection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698