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

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

Issue 2902393002: [vr] Bail on unhandled code points. (Closed)
Patch Set: Created 3 years, 7 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"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void CreateCloseButton(); 59 void CreateCloseButton();
60 void CreateExitWarning(); 60 void CreateExitWarning();
61 61
62 void ConfigureScene(); 62 void ConfigureScene();
63 void ConfigureBackgroundColor(vr::Colorf center_color, 63 void ConfigureBackgroundColor(vr::Colorf center_color,
64 vr::Colorf horizon_color); 64 vr::Colorf horizon_color);
65 void ConfigureSecurityWarnings(); 65 void ConfigureSecurityWarnings();
66 void OnSecurityWarningTimer(); 66 void OnSecurityWarningTimer();
67 void OnBackButtonClicked(); 67 void OnBackButtonClicked();
68 void OnCloseButtonClicked(); 68 void OnCloseButtonClicked();
69 void OnUnsupportedMode();
69 int AllocateId(); 70 int AllocateId();
70 71
71 VrBrowserInterface* browser_; 72 VrBrowserInterface* browser_;
72 UiScene* scene_; 73 UiScene* scene_;
73 74
74 // UI element pointers (not owned by the scene manager). 75 // UI element pointers (not owned by the scene manager).
75 UiElement* permanent_security_warning_ = nullptr; 76 UiElement* permanent_security_warning_ = nullptr;
76 UiElement* transient_security_warning_ = nullptr; 77 UiElement* transient_security_warning_ = nullptr;
77 UiElement* exit_warning_ = nullptr; 78 UiElement* exit_warning_ = nullptr;
78 UiElement* main_content_ = nullptr; 79 UiElement* main_content_ = nullptr;
(...skipping 21 matching lines...) Expand all
100 base::OneShotTimer security_warning_timer_; 101 base::OneShotTimer security_warning_timer_;
101 102
102 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; 103 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); 105 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
105 }; 106 };
106 107
107 } // namespace vr_shell 108 } // namespace vr_shell
108 109
109 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 110 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698