| 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 12 matching lines...) Expand all Loading... |
| 23 public ApplicationDelegate, | 23 public ApplicationDelegate, |
| 24 public InterfaceFactory<Keyboard>, | 24 public InterfaceFactory<Keyboard>, |
| 25 public InterfaceFactory<NativeViewport>, | 25 public InterfaceFactory<NativeViewport>, |
| 26 public InterfaceFactory<Gpu> { | 26 public InterfaceFactory<Gpu> { |
| 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(ApplicationManager* manager, | 33 void Load(const GURL& url, |
| 34 const GURL& url, | 34 InterfaceRequest<Application> application_request) override; |
| 35 InterfaceRequest<Application> application_request, | |
| 36 LoadCallback callback) override; | |
| 37 | 35 |
| 38 void OnApplicationError(ApplicationManager* manager, | 36 void OnApplicationError(ApplicationManager* manager, |
| 39 const GURL& url) override; | 37 const GURL& url) override; |
| 40 | 38 |
| 41 // ApplicationDelegate implementation. | 39 // ApplicationDelegate implementation. |
| 42 bool ConfigureIncomingConnection( | 40 bool ConfigureIncomingConnection( |
| 43 mojo::ApplicationConnection* connection) override; | 41 mojo::ApplicationConnection* connection) override; |
| 44 | 42 |
| 45 // InterfaceFactory<NativeViewport> implementation. | 43 // InterfaceFactory<NativeViewport> implementation. |
| 46 void Create(ApplicationConnection* connection, | 44 void Create(ApplicationConnection* connection, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 scoped_refptr<gles2::GpuImpl::State> gpu_state_; | 55 scoped_refptr<gles2::GpuImpl::State> gpu_state_; |
| 58 scoped_ptr<ApplicationImpl> app_; | 56 scoped_ptr<ApplicationImpl> app_; |
| 59 | 57 |
| 60 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); | 58 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); |
| 61 }; | 59 }; |
| 62 | 60 |
| 63 } // namespace shell | 61 } // namespace shell |
| 64 } // namespace mojo | 62 } // namespace mojo |
| 65 | 63 |
| 66 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ | 64 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ |
| OLD | NEW |