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

Side by Side Diff: chrome/browser/android/vr_shell/textures/system_indicator_texture.h

Issue 2884453002: VR: audio and video capture indicators. (Closed)
Patch Set: rebase 2 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
(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_TEXTURES_SYSTEM_INDICATOR_TEXTURE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_SYSTEM_INDICATOR_TEXTURE_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/android/vr_shell/textures/ui_texture.h"
10 #include "ui/gfx/vector_icon_types.h"
11
12 namespace vr_shell {
13
14 class SystemIndicatorTexture : public UiTexture {
15 public:
16 SystemIndicatorTexture(const gfx::VectorIcon& icon, int message_id);
17 ~SystemIndicatorTexture() override;
18 gfx::Size GetPreferredTextureSize(int width) const override;
19 gfx::SizeF GetDrawnSize() const override;
20
21 private:
22 void Draw(SkCanvas* canvas, const gfx::Size& texture_size) override;
23
24 gfx::SizeF size_;
25 const gfx::VectorIcon& icon_;
26 int message_id_;
27
28 DISALLOW_COPY_AND_ASSIGN(SystemIndicatorTexture);
29 };
30
31 } // namespace vr_shell
32
33 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_SYSTEM_INDICATOR_TEXTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698