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

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

Issue 2966793002: NOT FOR REVIEW - convert to cc animation
Patch Set: switch to transform operations 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_SYSTEM_INDICATOR_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SYSTEM_INDICATOR_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SYSTEM_INDICATOR_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SYSTEM_INDICATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h" 11 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h"
12 #include "ui/gfx/vector_icon_types.h" 12 #include "ui/gfx/vector_icon_types.h"
13 13
14 namespace vr_shell { 14 namespace vr_shell {
15 15
16 class UiTexture; 16 class UiTexture;
17 17
18 class SystemIndicator : public TexturedElement { 18 class SystemIndicator : public TexturedElement {
19 public: 19 public:
20 explicit SystemIndicator(int preferred_width, 20 explicit SystemIndicator(int id,
21 int preferred_width,
21 float heigh_meters, 22 float heigh_meters,
22 const gfx::VectorIcon& icon, 23 const gfx::VectorIcon& icon,
23 int string_id); 24 int string_id);
24 ~SystemIndicator() override; 25 ~SystemIndicator() override;
25 26
26 protected: 27 protected:
27 void UpdateElementSize() override; 28 void UpdateElementSize() override;
28 29
29 private: 30 private:
30 UiTexture* GetTexture() const override; 31 UiTexture* GetTexture() const override;
31 std::unique_ptr<UiTexture> texture_; 32 std::unique_ptr<UiTexture> texture_;
32 float height_meters_; 33 float height_meters_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(SystemIndicator); 35 DISALLOW_COPY_AND_ASSIGN(SystemIndicator);
35 }; 36 };
36 37
37 } // namespace vr_shell 38 } // namespace vr_shell
38 39
39 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SYSTEM_INDICATOR_H_ 40 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_SYSTEM_INDICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698