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

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

Issue 2902393002: [vr] Bail on unhandled code points. (Closed)
Patch Set: histograms Created 3 years, 6 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 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 "chrome/browser/android/vr_shell/ui_interface.h" 12 #include "chrome/browser/android/vr_shell/ui_interface.h"
13 #include "chrome/browser/android/vr_shell/ui_unsupported_mode.h"
13 #include "device/vr/vr_types.h" 14 #include "device/vr/vr_types.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace vr_shell { 18 namespace vr_shell {
18 19
19 class LoadingIndicator; 20 class LoadingIndicator;
20 class UiElement; 21 class UiElement;
21 class UiScene; 22 class UiScene;
22 class UrlBar; 23 class UrlBar;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void CreateCloseButton(); 60 void CreateCloseButton();
60 void CreateExitWarning(); 61 void CreateExitWarning();
61 62
62 void ConfigureScene(); 63 void ConfigureScene();
63 void ConfigureBackgroundColor(vr::Colorf center_color, 64 void ConfigureBackgroundColor(vr::Colorf center_color,
64 vr::Colorf horizon_color); 65 vr::Colorf horizon_color);
65 void ConfigureSecurityWarnings(); 66 void ConfigureSecurityWarnings();
66 void OnSecurityWarningTimer(); 67 void OnSecurityWarningTimer();
67 void OnBackButtonClicked(); 68 void OnBackButtonClicked();
68 void OnCloseButtonClicked(); 69 void OnCloseButtonClicked();
70 void OnUnsupportedMode(UiUnsupportedMode mode);
69 int AllocateId(); 71 int AllocateId();
70 72
71 VrBrowserInterface* browser_; 73 VrBrowserInterface* browser_;
72 UiScene* scene_; 74 UiScene* scene_;
73 75
74 // UI element pointers (not owned by the scene manager). 76 // UI element pointers (not owned by the scene manager).
75 UiElement* permanent_security_warning_ = nullptr; 77 UiElement* permanent_security_warning_ = nullptr;
76 UiElement* transient_security_warning_ = nullptr; 78 UiElement* transient_security_warning_ = nullptr;
77 UiElement* exit_warning_ = nullptr; 79 UiElement* exit_warning_ = nullptr;
78 UiElement* main_content_ = nullptr; 80 UiElement* main_content_ = nullptr;
(...skipping 21 matching lines...) Expand all
100 base::OneShotTimer security_warning_timer_; 102 base::OneShotTimer security_warning_timer_;
101 103
102 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; 104 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); 106 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
105 }; 107 };
106 108
107 } // namespace vr_shell 109 } // namespace vr_shell
108 110
109 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 111 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698