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

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

Issue 1088793003: Expose sky KeyboardService in android mojo_shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « shell/android/library_loader.cc ('k') | shell/android/native_viewport_application_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { 16 namespace gles2 {
17 class GpuState; 17 class GpuState;
18 } 18 }
19 19
20 namespace mojo { 20 namespace mojo {
21 class ApplicationImpl; 21 class ApplicationImpl;
22 } // namespace mojo 22 } // namespace mojo
23 23
24 namespace shell { 24 namespace shell {
25 25
26 class NativeViewportApplicationLoader 26 class NativeViewportApplicationLoader
27 : public ApplicationLoader, 27 : public ApplicationLoader,
28 public mojo::ApplicationDelegate, 28 public mojo::ApplicationDelegate,
29 public mojo::InterfaceFactory<mojo::Keyboard>, 29 public mojo::InterfaceFactory<keyboard::KeyboardService>,
30 public mojo::InterfaceFactory<mojo::NativeViewport>, 30 public mojo::InterfaceFactory<mojo::NativeViewport>,
31 public mojo::InterfaceFactory<mojo::Gpu> { 31 public mojo::InterfaceFactory<mojo::Gpu> {
32 public: 32 public:
33 NativeViewportApplicationLoader(); 33 NativeViewportApplicationLoader();
34 ~NativeViewportApplicationLoader(); 34 ~NativeViewportApplicationLoader();
35 35
36 private: 36 private:
37 // ApplicationLoader implementation. 37 // ApplicationLoader implementation.
38 void Load( 38 void Load(
39 const GURL& url, 39 const GURL& url,
40 mojo::InterfaceRequest<mojo::Application> application_request) override; 40 mojo::InterfaceRequest<mojo::Application> application_request) override;
41 41
42 // mojo::ApplicationDelegate implementation. 42 // mojo::ApplicationDelegate implementation.
43 bool ConfigureIncomingConnection( 43 bool ConfigureIncomingConnection(
44 mojo::ApplicationConnection* connection) override; 44 mojo::ApplicationConnection* connection) override;
45 45
46 // mojo::InterfaceFactory<mojo::NativeViewport> implementation. 46 // mojo::InterfaceFactory<mojo::NativeViewport> implementation.
47 void Create(mojo::ApplicationConnection* connection, 47 void Create(mojo::ApplicationConnection* connection,
48 mojo::InterfaceRequest<mojo::NativeViewport> request) override; 48 mojo::InterfaceRequest<mojo::NativeViewport> request) override;
49 49
50 // mojo::InterfaceFactory<mojo::Gpu> implementation. 50 // mojo::InterfaceFactory<mojo::Gpu> implementation.
51 void Create(mojo::ApplicationConnection* connection, 51 void Create(mojo::ApplicationConnection* connection,
52 mojo::InterfaceRequest<mojo::Gpu> request) override; 52 mojo::InterfaceRequest<mojo::Gpu> request) override;
53 53
54 // mojo::InterfaceFactory<mojo::Keyboard> implementation. 54 // mojo::InterfaceFactory<keyboard::KeyboardService> implementation.
55 void Create(mojo::ApplicationConnection* connection, 55 void Create(
56 mojo::InterfaceRequest<mojo::Keyboard> request) override; 56 mojo::ApplicationConnection* connection,
57 mojo::InterfaceRequest<keyboard::KeyboardService> request) override;
57 58
58 scoped_refptr<gles2::GpuState> gpu_state_; 59 scoped_refptr<gles2::GpuState> gpu_state_;
59 scoped_ptr<mojo::ApplicationImpl> app_; 60 scoped_ptr<mojo::ApplicationImpl> app_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); 62 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader);
62 }; 63 };
63 64
64 } // namespace shell 65 } // namespace shell
65 66
66 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 67 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « shell/android/library_loader.cc ('k') | shell/android/native_viewport_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698