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

Side by Side Diff: mandoline/ui/aura/surface_binding.h

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « mandoline/ui/aura/native_widget_view_manager.cc ('k') | mandoline/ui/aura/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 MANDOLINE_UI_AURA_SURFACE_BINDING_H_ 5 #ifndef MANDOLINE_UI_AURA_SURFACE_BINDING_H_
6 #define MANDOLINE_UI_AURA_SURFACE_BINDING_H_ 6 #define MANDOLINE_UI_AURA_SURFACE_BINDING_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace cc { 11 namespace cc {
12 class OutputSurface; 12 class OutputSurface;
13 } 13 }
14 14
15 namespace mojo { 15 namespace mojo {
16 class Shell; 16 class Shell;
17 }
18
19 namespace mus {
20 class View; 17 class View;
21 } 18 }
22 19
23 namespace mandoline { 20 namespace mandoline {
24 21
25 // SurfaceBinding is responsible for managing the connections necessary to 22 // SurfaceBinding is responsible for managing the connections necessary to
26 // bind a View to the surfaces service. 23 // bind a View to the surfaces service.
27 // Internally SurfaceBinding manages one connection (and related structures) per 24 // Internally SurfaceBinding manages one connection (and related structures) per
28 // ViewTreeConnection. That is, all Views from a particular ViewTreeConnection 25 // ViewTreeConnection. That is, all Views from a particular ViewTreeConnection
29 // share the same connection. 26 // share the same connection.
30 class SurfaceBinding { 27 class SurfaceBinding {
31 public: 28 public:
32 SurfaceBinding(mojo::Shell* shell, mus::View* view); 29 SurfaceBinding(mojo::Shell* shell, mojo::View* view);
33 ~SurfaceBinding(); 30 ~SurfaceBinding();
34 31
35 // Creates an OutputSurface that renders to the View supplied to the 32 // Creates an OutputSurface that renders to the View supplied to the
36 // constructor. 33 // constructor.
37 scoped_ptr<cc::OutputSurface> CreateOutputSurface(); 34 scoped_ptr<cc::OutputSurface> CreateOutputSurface();
38 35
39 private: 36 private:
40 class PerConnectionState; 37 class PerConnectionState;
41 38
42 mojo::Shell* shell_; 39 mojo::Shell* shell_;
43 mus::View* view_; 40 mojo::View* view_;
44 scoped_refptr<PerConnectionState> state_; 41 scoped_refptr<PerConnectionState> state_;
45 42
46 DISALLOW_COPY_AND_ASSIGN(SurfaceBinding); 43 DISALLOW_COPY_AND_ASSIGN(SurfaceBinding);
47 }; 44 };
48 45
49 } // namespace mandoline 46 } // namespace mandoline
50 47
51 #endif // MANDOLINE_UI_AURA_SURFACE_BINDING_H_ 48 #endif // MANDOLINE_UI_AURA_SURFACE_BINDING_H_
OLDNEW
« no previous file with comments | « mandoline/ui/aura/native_widget_view_manager.cc ('k') | mandoline/ui/aura/surface_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698