| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ | 5 #ifndef SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ |
| 6 #define SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ | 6 #define SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 class NativeViewportAppDelegate : public mojo::ApplicationDelegate { | 27 class NativeViewportAppDelegate : public mojo::ApplicationDelegate { |
| 28 public: | 28 public: |
| 29 NativeViewportAppDelegate(); | 29 NativeViewportAppDelegate(); |
| 30 ~NativeViewportAppDelegate() override; | 30 ~NativeViewportAppDelegate() override; |
| 31 | 31 |
| 32 // mojo::ApplicationDelegate implementation. | 32 // mojo::ApplicationDelegate implementation. |
| 33 void Initialize(mojo::ApplicationImpl* application) override; | 33 void Initialize(mojo::ApplicationImpl* application) override; |
| 34 | 34 |
| 35 bool ConfigureIncomingConnection( | 35 bool ConfigureIncomingConnection( |
| 36 mojo::ApplicationConnection* connection) override; | 36 mojo::ServiceProviderImpl* service_provider_impl) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 void InitLogging(mojo::ApplicationImpl* application); | 39 void InitLogging(mojo::ApplicationImpl* application); |
| 40 | 40 |
| 41 mojo::ApplicationImpl* application_; | 41 mojo::ApplicationImpl* application_; |
| 42 scoped_refptr<gles2::GpuState> gpu_state_; | 42 scoped_refptr<gles2::GpuState> gpu_state_; |
| 43 bool is_headless_; | 43 bool is_headless_; |
| 44 mojo::TracingImpl tracing_; | 44 mojo::TracingImpl tracing_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(NativeViewportAppDelegate); | 46 DISALLOW_COPY_AND_ASSIGN(NativeViewportAppDelegate); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace native_viewport | 49 } // namespace native_viewport |
| 50 | 50 |
| 51 #endif | 51 #endif |
| OLD | NEW |