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

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

Issue 2187103002: services/ui: Remove unused connector argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 4 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 | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/surface_binding.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 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_SURFACE_BINDING_H_ 5 #ifndef UI_VIEWS_MUS_SURFACE_BINDING_H_
6 #define UI_VIEWS_MUS_SURFACE_BINDING_H_ 6 #define UI_VIEWS_MUS_SURFACE_BINDING_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "services/ui/public/interfaces/window_tree.mojom.h" 12 #include "services/ui/public/interfaces/window_tree.mojom.h"
13 #include "ui/views/mus/mus_export.h" 13 #include "ui/views/mus/mus_export.h"
14 14
15 namespace cc { 15 namespace cc {
16 class OutputSurface; 16 class OutputSurface;
17 } 17 }
18 18
19 namespace ui { 19 namespace ui {
20 class Window; 20 class Window;
21 } 21 }
22 22
23 namespace shell {
24 class Connector;
25 }
26
27 namespace views { 23 namespace views {
28 24
29 // SurfaceBinding is responsible for managing the connections necessary to 25 // SurfaceBinding is responsible for managing the connections necessary to
30 // bind a Window to the surfaces service. 26 // bind a Window to the surfaces service.
31 // Internally SurfaceBinding manages one connection (and related structures) per 27 // Internally SurfaceBinding manages one connection (and related structures) per
32 // WindowTree. That is, all Windows from a particular WindowTree share the same 28 // WindowTree. That is, all Windows from a particular WindowTree share the same
33 // connection. 29 // connection.
34 class VIEWS_MUS_EXPORT SurfaceBinding { 30 class VIEWS_MUS_EXPORT SurfaceBinding {
35 public: 31 public:
36 SurfaceBinding(shell::Connector* connector, 32 SurfaceBinding(ui::Window* window, ui::mojom::SurfaceType surface_type);
37 ui::Window* window,
38 ui::mojom::SurfaceType surface_type);
39 ~SurfaceBinding(); 33 ~SurfaceBinding();
40 34
41 // Creates an OutputSurface that renders to the Window supplied to the 35 // Creates an OutputSurface that renders to the Window supplied to the
42 // constructor. 36 // constructor.
43 std::unique_ptr<cc::OutputSurface> CreateOutputSurface(); 37 std::unique_ptr<cc::OutputSurface> CreateOutputSurface();
44 38
45 private: 39 private:
46 class PerClientState; 40 class PerClientState;
47 41
48 ui::Window* window_; 42 ui::Window* window_;
49 const ui::mojom::SurfaceType surface_type_; 43 const ui::mojom::SurfaceType surface_type_;
50 scoped_refptr<PerClientState> state_; 44 scoped_refptr<PerClientState> state_;
51 45
52 DISALLOW_COPY_AND_ASSIGN(SurfaceBinding); 46 DISALLOW_COPY_AND_ASSIGN(SurfaceBinding);
53 }; 47 };
54 48
55 } // namespace views 49 } // namespace views
56 50
57 #endif // UI_VIEWS_MUS_SURFACE_BINDING_H_ 51 #endif // UI_VIEWS_MUS_SURFACE_BINDING_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/surface_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698