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/url_bar_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
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_TEXTURES_URL_BAR_TEXTURE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h"
11 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" 12 #include "chrome/browser/android/vr_shell/textures/ui_texture.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 class RenderText; 16 class RenderText;
16 } // namespace gfx 17 } // namespace gfx
17 18
18 namespace vr_shell { 19 namespace vr_shell {
19 20
20 class UrlBarTexture : public UiTexture { 21 class UrlBarTexture : public UiTexture {
(...skipping 13 matching lines...) Expand all
34 35
35 private: 36 private:
36 void Draw(SkCanvas* canvas, const gfx::Size& texture_size) override; 37 void Draw(SkCanvas* canvas, const gfx::Size& texture_size) override;
37 float ToPixels(float meters) const; 38 float ToPixels(float meters) const;
38 39
39 gfx::SizeF size_; 40 gfx::SizeF size_;
40 int security_level_; 41 int security_level_;
41 GURL gurl_; 42 GURL gurl_;
42 GURL last_drawn_gurl_; 43 GURL last_drawn_gurl_;
43 std::vector<std::unique_ptr<gfx::RenderText>> gurl_render_texts_; 44 std::vector<std::unique_ptr<gfx::RenderText>> gurl_render_texts_;
45
46 DISALLOW_COPY_AND_ASSIGN(UrlBarTexture);
44 }; 47 };
45 48
46 } // namespace vr_shell 49 } // namespace vr_shell
47 50
48 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_ 51 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_URL_BAR_TEXTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698