Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_CAPTURE_INDICATOR_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_CAPTURE_INDICATOR_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h" | |
| 12 | |
| 13 namespace vr_shell { | |
| 14 | |
| 15 class UiTexture; | |
| 16 | |
| 17 class ScreenCaptureIndicator : public TexturedElement { | |
| 18 public: | |
| 19 explicit ScreenCaptureIndicator(int preferred_width); | |
| 20 ~ScreenCaptureIndicator() override; | |
| 21 | |
| 22 private: | |
| 23 UiTexture* GetTexture() const override; | |
| 24 std::unique_ptr<UiTexture> texture_; | |
|
Evan Stade
2017/05/18 14:30:27
nit: does this need to be a (smart) pointer?
acondor_
2017/05/18 15:54:17
Not quite, but changing this requires removing the
| |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureIndicator); | |
| 27 }; | |
| 28 | |
| 29 } // namespace vr_shell | |
| 30 | |
| 31 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SCREEN_CAPTURE_INDICATOR_ H_ | |
| OLD | NEW |