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

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: Created 5 years, 9 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 16 matching lines...) Expand all
42 InterfaceRequest<NativeViewport> request) override; 46 InterfaceRequest<NativeViewport> request) override;
43 47
44 // InterfaceFactory<Gpu> implementation. 48 // InterfaceFactory<Gpu> implementation.
45 void Create(ApplicationConnection* connection, 49 void Create(ApplicationConnection* connection,
46 InterfaceRequest<Gpu> request) override; 50 InterfaceRequest<Gpu> request) override;
47 51
48 // InterfaceFactory<Keyboard> implementation. 52 // InterfaceFactory<Keyboard> implementation.
49 void Create(ApplicationConnection* connection, 53 void Create(ApplicationConnection* connection,
50 InterfaceRequest<Keyboard> request) override; 54 InterfaceRequest<Keyboard> request) override;
51 55
52 scoped_refptr<gles2::GpuImpl::State> gpu_state_; 56 scoped_refptr<gles2::GpuState> gpu_state_;
53 scoped_ptr<ApplicationImpl> app_; 57 scoped_ptr<ApplicationImpl> app_;
54 58
55 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); 59 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader);
56 }; 60 };
57 61
58 } // namespace shell 62 } // namespace shell
59 } // namespace mojo 63 } // namespace mojo
60 64
61 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 65 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « services/view_manager/display_manager.cc ('k') | shell/android/native_viewport_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698