Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "url/gurl.h" | 12 #include "chrome/browser/android/vr_shell/ui_interface.h" |
| 13 | |
| 14 class GURL; | |
| 13 | 15 |
| 14 namespace vr_shell { | 16 namespace vr_shell { |
| 15 | 17 |
| 16 class UiElement; | 18 class UiElement; |
| 17 class UiScene; | 19 class UiScene; |
| 18 class UrlBar; | 20 class UrlBar; |
| 19 class VrBrowserInterface; | 21 class VrBrowserInterface; |
| 20 | 22 |
| 21 class UiSceneManager { | 23 class UiSceneManager { |
| 22 public: | 24 public: |
| 23 UiSceneManager(VrBrowserInterface* browser, UiScene* scene); | 25 UiSceneManager(VrBrowserInterface* browser, UiScene* scene); |
| 24 ~UiSceneManager(); | 26 ~UiSceneManager(); |
| 25 | 27 |
| 26 base::WeakPtr<UiSceneManager> GetWeakPtr(); | 28 base::WeakPtr<UiSceneManager> GetWeakPtr(); |
| 27 | 29 |
| 28 void SetWebVRSecureOrigin(bool secure); | 30 void SetWebVRSecureOrigin(bool secure); |
| 29 void SetWebVRMode(bool web_vr); | 31 void SetWebVRMode(bool web_vr); |
| 32 void SetURL(const GURL& gurl); | |
| 33 void SetFullscreen(bool enabled); | |
|
ymalik
2017/05/08 14:05:00
nit: add a comment here or somewhere mentioning th
cjgrant
2017/05/08 14:14:37
Sure, but that future will be in the next 2 days.
cjgrant
2017/05/08 19:17:22
Done.
| |
| 34 void SetSecurityLevel(int level); | |
| 35 void SetLoading(bool loading); | |
| 36 void SetLoadProgress(double progress); | |
| 37 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); | |
| 30 | 38 |
| 31 void OnAppButtonClicked(); | 39 void OnAppButtonClicked(); |
| 32 void OnUrlChange(const GURL& gurl); | 40 void OnAppButtonGesturePerformed(UiInterface::Direction direction); |
| 33 | 41 |
| 34 private: | 42 private: |
| 35 void CreateSecurityWarnings(); | 43 void CreateSecurityWarnings(); |
| 36 void CreateContentQuad(); | 44 void CreateContentQuad(); |
| 37 void CreateBackground(); | 45 void CreateBackground(); |
| 38 void CreateUrlBar(); | 46 void CreateUrlBar(); |
| 39 | 47 |
| 40 void ConfigureSecurityWarnings(); | 48 void ConfigureSecurityWarnings(); |
| 41 void OnSecurityWarningTimer(); | 49 void OnSecurityWarningTimer(); |
| 42 int AllocateId(); | 50 int AllocateId(); |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 61 base::OneShotTimer security_warning_timer_; | 69 base::OneShotTimer security_warning_timer_; |
| 62 | 70 |
| 63 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; | 71 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; |
| 64 | 72 |
| 65 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); | 73 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); |
| 66 }; | 74 }; |
| 67 | 75 |
| 68 } // namespace vr_shell | 76 } // namespace vr_shell |
| 69 | 77 |
| 70 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ | 78 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ |
| OLD | NEW |