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

Side by Side Diff: components/native_viewport/native_viewport_application_delegate.h

Issue 1131523007: Move NativeViewport service into view_manager. This is a file move only. Further merging will happe… (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
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_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_
6 #define COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "components/gles2/gpu_impl.h"
10 #include "components/native_viewport/public/interfaces/native_viewport.mojom.h"
11 #include "mojo/application/app_lifetime_helper.h"
12 #include "mojo/application/public/cpp/application_delegate.h"
13 #include "mojo/application/public/cpp/interface_factory_impl.h"
14 #include "mojo/common/tracing_impl.h"
15
16 namespace mojo {
17 class ApplicationConnection;
18 class ApplicationImpl;
19 }
20
21 namespace ui {
22 class PlatformEventSource;
23 }
24
25 namespace native_viewport {
26
27 class NativeViewportApplicationDelegate
28 : public mojo::ApplicationDelegate,
29 public mojo::InterfaceFactory<mojo::NativeViewport>,
30 public mojo::InterfaceFactory<mojo::Gpu> {
31 public:
32 NativeViewportApplicationDelegate();
33 ~NativeViewportApplicationDelegate() override;
34
35 private:
36 // mojo::ApplicationDelegate implementation.
37 void Initialize(mojo::ApplicationImpl* application) override;
38 bool ConfigureIncomingConnection(
39 mojo::ApplicationConnection* connection) override;
40
41 // mojo::InterfaceFactory<NativeViewport> implementation.
42 void Create(mojo::ApplicationConnection* connection,
43 mojo::InterfaceRequest<mojo::NativeViewport> request) override;
44
45 // mojo::InterfaceFactory<Gpu> implementation.
46 void Create(mojo::ApplicationConnection* connection,
47 mojo::InterfaceRequest<mojo::Gpu> request) override;
48
49 scoped_refptr<gles2::GpuState> gpu_state_;
50 scoped_ptr<ui::PlatformEventSource> event_source_;
51 bool is_headless_;
52 mojo::TracingImpl tracing_;
53 mojo::AppLifetimeHelper app_lifetime_helper_;
54
55 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationDelegate);
56 };
57
58 } // namespace native_viewport
59
60 #endif // COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/native_viewport/main.cc ('k') | components/native_viewport/native_viewport_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698