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

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

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

Powered by Google App Engine
This is Rietveld 408576698