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

Side by Side Diff: components/view_manager/surfaces/display_factory_impl.h

Issue 1245683004: Mandoline: Merge Surfaces and Views apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed bot issues (I hope) Created 5 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
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 COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_FACTORY_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_FACTORY_IMPL_H_
7
8 #include "components/view_manager/public/interfaces/display.mojom.h"
9 #include "components/view_manager/surfaces/display_impl.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
11
12 namespace cc {
13 class SurfaceManager;
14 }
15
16 namespace surfaces {
17
18 class DisplayDelegate;
19 class SurfacesScheduler;
20 class SurfacesServiceApplication;
21
22 class DisplayFactoryImpl : public mojo::DisplayFactory {
23 public:
24 DisplayFactoryImpl(DisplayDelegate* display_delegate,
25 const scoped_refptr<SurfacesState>& surfaces_state,
26 mojo::InterfaceRequest<mojo::DisplayFactory> request);
27
28 void CloseConnection();
29
30 private:
31 ~DisplayFactoryImpl() override;
32
33 // mojo::DisplayFactory implementation.
34 void Create(mojo::ContextProviderPtr context_provider,
35 mojo::ResourceReturnerPtr returner,
36 mojo::InterfaceRequest<mojo::Display> display_request) override;
37
38 // We use one ID namespace for all DisplayImpls since the ID is used only by
39 // cc and not exposed through mojom.
40 uint32_t id_namespace_;
41 uint32_t next_local_id_;
42 DisplayDelegate* display_delegate_;
43 scoped_refptr<SurfacesState> surfaces_state_;
44 mojo::Binding<mojo::DisplayFactory> binding_;
45 bool connection_closed_;
46
47 DISALLOW_COPY_AND_ASSIGN(DisplayFactoryImpl);
48 };
49
50 } // namespace surfaces
51
52 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « components/view_manager/surfaces/display_delegate.h ('k') | components/view_manager/surfaces/display_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698