OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_ | 5 #ifndef COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_ |
6 #define COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_ | 6 #define COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/gles2/gpu_impl.h" | 9 #include "components/gles2/gpu_impl.h" |
10 #include "components/native_viewport/public/interfaces/native_viewport.mojom.h" | 10 #include "components/native_viewport/public/interfaces/native_viewport.mojom.h" |
| 11 #include "mojo/application/app_lifetime_helper.h" |
11 #include "mojo/application/public/cpp/application_delegate.h" | 12 #include "mojo/application/public/cpp/application_delegate.h" |
12 #include "mojo/application/public/cpp/interface_factory_impl.h" | 13 #include "mojo/application/public/cpp/interface_factory_impl.h" |
13 #include "mojo/common/tracing_impl.h" | 14 #include "mojo/common/tracing_impl.h" |
14 | 15 |
15 namespace mojo { | 16 namespace mojo { |
16 class ApplicationConnection; | 17 class ApplicationConnection; |
17 class ApplicationImpl; | 18 class ApplicationImpl; |
18 } | 19 } |
19 | 20 |
20 namespace ui { | 21 namespace ui { |
(...skipping 21 matching lines...) Expand all Loading... |
42 mojo::InterfaceRequest<mojo::NativeViewport> request) override; | 43 mojo::InterfaceRequest<mojo::NativeViewport> request) override; |
43 | 44 |
44 // mojo::InterfaceFactory<Gpu> implementation. | 45 // mojo::InterfaceFactory<Gpu> implementation. |
45 void Create(mojo::ApplicationConnection* connection, | 46 void Create(mojo::ApplicationConnection* connection, |
46 mojo::InterfaceRequest<mojo::Gpu> request) override; | 47 mojo::InterfaceRequest<mojo::Gpu> request) override; |
47 | 48 |
48 scoped_refptr<gles2::GpuState> gpu_state_; | 49 scoped_refptr<gles2::GpuState> gpu_state_; |
49 scoped_ptr<ui::PlatformEventSource> event_source_; | 50 scoped_ptr<ui::PlatformEventSource> event_source_; |
50 bool is_headless_; | 51 bool is_headless_; |
51 mojo::TracingImpl tracing_; | 52 mojo::TracingImpl tracing_; |
| 53 mojo::AppLifetimeHelper app_lifetime_helper_; |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationDelegate); |
54 }; | 56 }; |
55 | 57 |
56 } // namespace native_viewport | 58 } // namespace native_viewport |
57 | 59 |
58 #endif // COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_ | 60 #endif // COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_ |
OLD | NEW |