| 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 MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ | 5 #ifndef MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ |
| 6 #define MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ | 6 #define MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ |
| 7 | 7 |
| 8 #include "mojo/public/cpp/application/application_delegate.h" | 8 #include "mojo/public/cpp/application/application_delegate.h" |
| 9 #include "mojo/public/cpp/application/interface_factory.h" | 9 #include "mojo/public/cpp/application/interface_factory.h" |
| 10 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" | 10 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public: | 27 public: |
| 28 NativeViewportApplicationLoader(); | 28 NativeViewportApplicationLoader(); |
| 29 ~NativeViewportApplicationLoader(); | 29 ~NativeViewportApplicationLoader(); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 // ApplicationLoader implementation. | 32 // ApplicationLoader implementation. |
| 33 void Load(const GURL& url, | 33 void Load(const GURL& url, |
| 34 InterfaceRequest<Application> application_request) override; | 34 InterfaceRequest<Application> application_request) override; |
| 35 | 35 |
| 36 // ApplicationDelegate implementation. | 36 // ApplicationDelegate implementation. |
| 37 bool ConfigureIncomingConnection( | 37 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; |
| 38 mojo::ApplicationConnection* connection) override; | |
| 39 | 38 |
| 40 // InterfaceFactory<NativeViewport> implementation. | 39 // InterfaceFactory<NativeViewport> implementation. |
| 41 void Create(ApplicationConnection* connection, | 40 void Create(ApplicationConnection* connection, |
| 42 InterfaceRequest<NativeViewport> request) override; | 41 InterfaceRequest<NativeViewport> request) override; |
| 43 | 42 |
| 44 // InterfaceFactory<Gpu> implementation. | 43 // InterfaceFactory<Gpu> implementation. |
| 45 void Create(ApplicationConnection* connection, | 44 void Create(ApplicationConnection* connection, |
| 46 InterfaceRequest<Gpu> request) override; | 45 InterfaceRequest<Gpu> request) override; |
| 47 | 46 |
| 48 // InterfaceFactory<Keyboard> implementation. | 47 // InterfaceFactory<Keyboard> implementation. |
| 49 void Create(ApplicationConnection* connection, | 48 void Create(ApplicationConnection* connection, |
| 50 InterfaceRequest<Keyboard> request) override; | 49 InterfaceRequest<Keyboard> request) override; |
| 51 | 50 |
| 52 scoped_refptr<gles2::GpuImpl::State> gpu_state_; | 51 scoped_refptr<gles2::GpuImpl::State> gpu_state_; |
| 53 scoped_ptr<ApplicationImpl> app_; | 52 scoped_ptr<ApplicationImpl> app_; |
| 54 | 53 |
| 55 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); | 54 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } // namespace shell | 57 } // namespace shell |
| 59 } // namespace mojo | 58 } // namespace mojo |
| 60 | 59 |
| 61 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ | 60 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ |
| OLD | NEW |