| OLD | NEW |
| 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_ |
| OLD | NEW |