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

Side by Side Diff: device/vr/android/gvr/gvr_api_manager.h

Issue 2309523003: Plumbing through more WebVR presentation code (Closed)
Patch Set: Addressed Michael's feedack Created 4 years, 3 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 | « device/vr/BUILD.gn ('k') | device/vr/android/gvr/gvr_api_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_VR_ANDROID_GVR_API_MANAGER_H
6 #define DEVICE_VR_ANDROID_GVR_API_MANAGER_H
7
8 #include "device/vr/vr_export.h"
9
10 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g vr.h"
11
12 namespace device {
13
14 class DEVICE_VR_EXPORT GvrApiManagerClient {
15 public:
16 virtual void OnGvrApiInitialized(gvr::GvrApi* gvr_api) = 0;
17 virtual void OnGvrApiShutdown() = 0;
18 };
19
20 class DEVICE_VR_EXPORT GvrApiManager {
21 public:
22 static GvrApiManager* GetInstance();
23
24 void AddClient(GvrApiManagerClient* client);
25 void RemoveClient(GvrApiManagerClient* client);
26
27 void Initialize(gvr_context* context);
28 void Shutdown();
29
30 gvr::GvrApi* gvr_api();
31
32 private:
33 GvrApiManager();
34 ~GvrApiManager();
35
36 std::unique_ptr<gvr::GvrApi> gvr_api_;
37
38 using ClientList = std::vector<GvrApiManagerClient*>;
39 ClientList clients_;
40 };
41
42 } // namespace device
43
44 #endif // DEVICE_VR_ANDROID_GVR_API_MANAGER_H
OLDNEW
« no previous file with comments | « device/vr/BUILD.gn ('k') | device/vr/android/gvr/gvr_api_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698