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

Side by Side Diff: services/native_viewport/native_viewport_app.h

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased 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 | « services/native_viewport/main.cc ('k') | services/native_viewport/native_viewport_app.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 2014 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 SERVICES_NATIVE_VIEWPORT_APP_H_
6 #define SERVICES_NATIVE_VIEWPORT_APP_H_
7
8 #include "base/macros.h"
9 #include "mojo/common/tracing_impl.h"
10 #include "mojo/public/cpp/application/application_impl_base.h"
11 #include "services/gles2/gpu_state.h"
12
13 namespace native_viewport {
14
15 class NativeViewportApp : public mojo::ApplicationImplBase {
16 public:
17 NativeViewportApp();
18 ~NativeViewportApp() override;
19
20 // mojo::ApplicationImplBase overrides.
21 void OnInitialize() override;
22 bool OnAcceptConnection(
23 mojo::ServiceProviderImpl* service_provider_impl) override;
24
25 private:
26 void InitLogging();
27
28 scoped_refptr<gles2::GpuState> gpu_state_;
29 bool is_headless_;
30 mojo::TracingImpl tracing_;
31
32 DISALLOW_COPY_AND_ASSIGN(NativeViewportApp);
33 };
34
35 } // namespace native_viewport
36
37 #endif // SERVICES_NATIVE_VIEWPORT_APP_H_
OLDNEW
« no previous file with comments | « services/native_viewport/main.cc ('k') | services/native_viewport/native_viewport_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698