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

Side by Side Diff: services/native_viewport/app_delegate.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/BUILD.gn ('k') | services/native_viewport/app_delegate.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_DELEGATE_H_
6 #define SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_
7
8 #include <algorithm>
9
10 #include "base/bind.h"
11 #include "base/command_line.h"
12 #include "base/macros.h"
13 #include "base/message_loop/message_loop.h"
14 #include "mojo/application/application_runner_chromium.h"
15 #include "mojo/common/tracing_impl.h"
16 #include "mojo/public/c/system/main.h"
17 #include "mojo/public/cpp/application/application_delegate.h"
18 #include "mojo/public/cpp/application/application_impl.h"
19 #include "mojo/services/native_viewport/cpp/args.h"
20 #include "services/gles2/gpu_impl.h"
21 #include "services/native_viewport/native_viewport_impl.h"
22 #include "ui/events/event_switches.h"
23 #include "ui/gl/gl_surface.h"
24
25 namespace native_viewport {
26
27 class NativeViewportAppDelegate : public mojo::ApplicationDelegate {
28 public:
29 NativeViewportAppDelegate();
30 ~NativeViewportAppDelegate() override;
31
32 // mojo::ApplicationDelegate implementation.
33 void Initialize(mojo::ApplicationImpl* application) override;
34
35 bool ConfigureIncomingConnection(
36 mojo::ServiceProviderImpl* service_provider_impl) override;
37
38 private:
39 void InitLogging(mojo::ApplicationImpl* application);
40
41 mojo::ApplicationImpl* application_;
42 scoped_refptr<gles2::GpuState> gpu_state_;
43 bool is_headless_;
44 mojo::TracingImpl tracing_;
45
46 DISALLOW_COPY_AND_ASSIGN(NativeViewportAppDelegate);
47 };
48
49 } // namespace native_viewport
50
51 #endif
OLDNEW
« no previous file with comments | « services/native_viewport/BUILD.gn ('k') | services/native_viewport/app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698