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

Side by Side Diff: chrome/browser/android/vr_shell/ui_scene_manager.h

Issue 2809143004: VR: Add a native UI element scene manager (Closed)
Patch Set: Rebase. Created 3 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
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 CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "base/values.h"
11
12 namespace vr_shell {
13
14 class UiScene;
15
16 class UiSceneManager {
17 public:
18 explicit UiSceneManager(UiScene* scene);
19 ~UiSceneManager();
20
21 base::WeakPtr<UiSceneManager> GetWeakPtr();
22
23 void UpdateScene(std::unique_ptr<base::ListValue> commands);
24
25 void SetWebVRSecureOrigin(bool secure);
26 void SetWebVRMode(bool web_vr);
27
28 private:
29 UiScene* scene_;
30
31 bool web_vr_mode_ = false;
32 bool secure_origin_ = false;
33
34 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
35
36 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
37 };
38
39 } // namespace vr_shell
40
41 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_scene_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698