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

Side by Side Diff: shell/android/native_viewport_application_loader.h

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: android fixes Created 5 years, 10 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
OLDNEW
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"
11 #include "mojo/services/keyboard/public/interfaces/keyboard.mojom.h" 11 #include "mojo/services/keyboard/public/interfaces/keyboard.mojom.h"
12 #include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom. h" 12 #include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom. h"
13 #include "services/gles2/gpu_impl.h" 13 #include "services/gles2/gpu_impl.h"
14 #include "shell/application_manager/application_loader.h" 14 #include "shell/application_manager/application_loader.h"
15 15
16 namespace gles2 {
17 class GpuState;
18 }
19
16 namespace mojo { 20 namespace mojo {
17 21
18 class ApplicationImpl; 22 class ApplicationImpl;
19 23
20 namespace shell { 24 namespace shell {
21 25
22 class NativeViewportApplicationLoader : public ApplicationLoader, 26 class NativeViewportApplicationLoader : public ApplicationLoader,
23 public ApplicationDelegate, 27 public ApplicationDelegate,
24 public InterfaceFactory<Keyboard>, 28 public InterfaceFactory<Keyboard>,
25 public InterfaceFactory<NativeViewport>, 29 public InterfaceFactory<NativeViewport>,
(...skipping 19 matching lines...) Expand all
45 InterfaceRequest<NativeViewport> request) override; 49 InterfaceRequest<NativeViewport> request) override;
46 50
47 // InterfaceFactory<Gpu> implementation. 51 // InterfaceFactory<Gpu> implementation.
48 void Create(ApplicationConnection* connection, 52 void Create(ApplicationConnection* connection,
49 InterfaceRequest<Gpu> request) override; 53 InterfaceRequest<Gpu> request) override;
50 54
51 // InterfaceFactory<Keyboard> implementation. 55 // InterfaceFactory<Keyboard> implementation.
52 void Create(ApplicationConnection* connection, 56 void Create(ApplicationConnection* connection,
53 InterfaceRequest<Keyboard> request) override; 57 InterfaceRequest<Keyboard> request) override;
54 58
55 scoped_refptr<gles2::GpuImpl::State> gpu_state_; 59 scoped_refptr<gles2::GpuState> gpu_state_;
56 scoped_ptr<ApplicationImpl> app_; 60 scoped_ptr<ApplicationImpl> app_;
57 61
58 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); 62 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader);
59 }; 63 };
60 64
61 } // namespace shell 65 } // namespace shell
62 } // namespace mojo 66 } // namespace mojo
63 67
64 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 68 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698