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

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

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
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
« no previous file with comments | « ui/views/mus/native_widget_mus_unittest.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"
(...skipping 25 matching lines...) Expand all
36 SurfaceBinding(shell::Connector* connector, 36 SurfaceBinding(shell::Connector* connector,
37 mus::Window* window, 37 mus::Window* window,
38 mus::mojom::SurfaceType surface_type); 38 mus::mojom::SurfaceType surface_type);
39 ~SurfaceBinding(); 39 ~SurfaceBinding();
40 40
41 // Creates an OutputSurface that renders to the Window supplied to the 41 // Creates an OutputSurface that renders to the Window supplied to the
42 // constructor. 42 // constructor.
43 std::unique_ptr<cc::OutputSurface> CreateOutputSurface(); 43 std::unique_ptr<cc::OutputSurface> CreateOutputSurface();
44 44
45 private: 45 private:
46 class PerConnectionState; 46 class PerClientState;
47 47
48 mus::Window* window_; 48 mus::Window* window_;
49 const mus::mojom::SurfaceType surface_type_; 49 const mus::mojom::SurfaceType surface_type_;
50 scoped_refptr<PerConnectionState> state_; 50 scoped_refptr<PerClientState> state_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(SurfaceBinding); 52 DISALLOW_COPY_AND_ASSIGN(SurfaceBinding);
53 }; 53 };
54 54
55 } // namespace views 55 } // namespace views
56 56
57 #endif // UI_VIEWS_MUS_SURFACE_BINDING_H_ 57 #endif // UI_VIEWS_MUS_SURFACE_BINDING_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus_unittest.cc ('k') | ui/views/mus/surface_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698