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

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements/exclusive_screen_toast.h

Issue 2955023002: VR: Factor transient timing out of UiSceneManager. (Closed)
Patch Set: Rebase again onto ExclusivePresentationToast class/file rename. Created 3 years, 5 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ELEMENTS_EXCLUSIVE_SCREEN_TOAST_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXCLUSIVE_SCREEN_TOAST_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXCLUSIVE_SCREEN_TOAST_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXCLUSIVE_SCREEN_TOAST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/android/vr_shell/textures/exclusive_screen_toast_textur e.h" 9 #include "chrome/browser/android/vr_shell/textures/exclusive_screen_toast_textur e.h"
10 #include "chrome/browser/android/vr_shell/ui_elements/simple_textured_element.h" 10 #include "chrome/browser/android/vr_shell/ui_elements/simple_textured_element.h"
11 11
12 namespace vr_shell { 12 namespace vr_shell {
13 13
14 class ExclusiveScreenToast 14 class ExclusiveScreenToast
15 : public SimpleTexturedElement<ExclusiveScreenToastTexture> { 15 : public TransientSimpleTexturedElement<ExclusiveScreenToastTexture> {
16 public: 16 public:
17 explicit ExclusiveScreenToast(int preferred_width); 17 ExclusiveScreenToast(int preferred_width, const base::TimeDelta& timeout);
18 ~ExclusiveScreenToast() override; 18 ~ExclusiveScreenToast() override;
19 19
20 private: 20 private:
21 void UpdateElementSize() override; 21 void UpdateElementSize() override;
22 22
23 DISALLOW_COPY_AND_ASSIGN(ExclusiveScreenToast); 23 DISALLOW_COPY_AND_ASSIGN(ExclusiveScreenToast);
24 }; 24 };
25 25
26 } // namespace vr_shell 26 } // namespace vr_shell
27 27
28 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXCLUSIVE_SCREEN_TOAST_H_ 28 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXCLUSIVE_SCREEN_TOAST_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_elements/exclusive_screen_toast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698